stroop praat vaker terug als je het over hem hebt
This commit is contained in:
+7
-5
@@ -38,8 +38,8 @@ class Chatbot(object):
|
||||
yield from message.channel.send("kankerlauw")
|
||||
return
|
||||
if message.content.lower() == "lol":
|
||||
yield from message.channel.send("laffing aut laut")
|
||||
return
|
||||
yield from message.channel.send("laffing aut laut")
|
||||
return
|
||||
if "DMChannel" in type(message.channel).__name__: #respond to messages in PM channels
|
||||
if (self.isAllowedToLearnFromPm(message)): #avoid spam-learning
|
||||
self.pmCount += 1
|
||||
@@ -49,12 +49,14 @@ class Chatbot(object):
|
||||
elif message.channel.id == self.bot.hdChannels["belangrijk"]: #don't abuse the "belangrijk" channel
|
||||
pass
|
||||
else:
|
||||
a = random.randint(0,999)
|
||||
if message.channel.id == self.bot.hdChannels["shitpost"] and a < 40: #shitpost channel
|
||||
a = random.randint(0,999) # probablity
|
||||
if a < 40:
|
||||
yield from self.learnFromMessagesInChannel(message.channel.id, 10)
|
||||
if "stroop" in message.content.lower():
|
||||
a = a / 20 # significantly increase the chance of responding if somebody talks about him.
|
||||
if message.channel.id == self.bot.hdChannels["shitpost"] and a < 40: #shitpost channel
|
||||
yield from self.respondToMessage(message)
|
||||
elif a < 10: #all other channels
|
||||
yield from self.learnFromMessagesInChannel(message.channel.id, 20)
|
||||
yield from self.respondToMessage(message)
|
||||
|
||||
#process commands:
|
||||
|
||||
Reference in New Issue
Block a user