From c7d8127ad49501a439e7cfabc31dd2d96b4fcd06 Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Sun, 16 Apr 2017 18:53:53 -0400 Subject: [PATCH] Made the bot always replace some words when mentioned --- buttsbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buttsbot.py b/buttsbot.py index a32e6fe..7ba45d0 100644 --- a/buttsbot.py +++ b/buttsbot.py @@ -38,7 +38,7 @@ def on_ready(): def on_message(message): if message.author == client.user: return - if random.randint(0,50) >= 40: + if client.user.mentioned_in(message) or random.randint(0,50) >= 40: words = message.content.split() relpacenum = random.randint(1,5) replacedwords = 0