From 84bb388906063ecaa014880c69e9a079e9a51b28 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 25 Feb 2019 12:28:37 +0300 Subject: [PATCH] verification: cleaner snark --- cogs/verification.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cogs/verification.py b/cogs/verification.py index 54d944a..b6fede9 100644 --- a/cogs/verification.py +++ b/cogs/verification.py @@ -170,13 +170,12 @@ class Verification: chan = message.channel mcl = message.content.lower() - if "bot" in mcl and ("bad" in mcl or - "broken" in mcl or - "buggy" in mcl or - "bugged" in mcl or - "stupid" in mcl): + # Reply to users that insult the bot + oof = ["bad", "broken", "buggy", "bugged", "stupid"] + if "bot" in mcl and any(insult in mcl for insult in oof): snark = random.choice(["bad human", "no u", + "no u, rtfm", "pebkac"]) return await chan.send(snark)