From 0374cdc84e5c7051cc9867bafce0b756680e3564 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Wed, 8 Apr 2020 23:00:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=95=20Gwendolyn=20reacts=20when=20peop?= =?UTF-8?q?le=20are=20mean?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gwendolyn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gwendolyn.py b/Gwendolyn.py index d89dcb2..152b31d 100644 --- a/Gwendolyn.py +++ b/Gwendolyn.py @@ -279,7 +279,9 @@ async def on_message(message): # Is a bit sassy sometimes - if ("gwendolyn" in message.content.lower() or message.content.startswith("!")) and ("bitch" in message.content.lower() or "fuck" in message.content.lower()) and "ikke" in message.content.lower() and "not" in message.content.lower(): + meanWords = ["stupid", "bitch", "fuck"] + if ("gwendolyn" in message.content.lower() or message.content.startswith("!")) and any(x in message.content.lower() for x in meanWords) and "ikke" not in message.content.lower() and "not" not in message.content.lower(): + funcs.logThis(message.author.name+" was a bit mean") emoji = random.choice(["😠", "🖕", "👎"]) await message.add_reaction(emoji)