Made the bot always replace some words when mentioned

master
pocketjawa 2017-04-16 18:53:53 -04:00
parent 684cadaf9d
commit c7d8127ad4
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def on_ready():
def on_message(message): def on_message(message):
if message.author == client.user: if message.author == client.user:
return return
if random.randint(0,50) >= 40: if client.user.mentioned_in(message) or random.randint(0,50) >= 40:
words = message.content.split() words = message.content.split()
relpacenum = random.randint(1,5) relpacenum = random.randint(1,5)
replacedwords = 0 replacedwords = 0