diff --git a/src/cogs/funreplies.py b/src/cogs/funreplies.py index 0535cda..9ffd694 100644 --- a/src/cogs/funreplies.py +++ b/src/cogs/funreplies.py @@ -47,15 +47,18 @@ class FunReplies(commands.Cog): message_content = message.content.lower() + if re.search(r"(^|\W)borgerlønn(\W|$)", message_content, flags=re.IGNORECASE): + if (datetime.now() - self.previous_invokations["borgerlønn"]).seconds > self.cooldown_seconds: + await message.reply("<@267415183931080715> DE SNAKKER OM BORGERLØNN") + self.previous_invokations["borgerlønn"] = datetime.now() + + elif re.search(r"(^|\W)olof palme(\W|$)", message_content, flags=re.IGNORECASE): if re.search(r"(^|\W)olof palme(\W|$)", message_content, flags=re.IGNORECASE): if (datetime.now() - self.previous_invokations["olof palme"]).seconds > self.cooldown_seconds: await message.reply("Jeg vet hvem som drepte Olof Palme 👀") self.previous_invokations["olof palme"] = datetime.now() - if re.search(r"(^|\W)borgerlønn(\W|$)", message_content, flags=re.IGNORECASE): - if (datetime.now() - self.previous_invokations["borgerlønn"]).seconds > self.cooldown_seconds: - await message.reply("<@267415183931080715> DE SNAKKER OM BORGERLØNN") - self.previous_invokations["borgerlønn"] = datetime.now() + elif re.search(r"(^|\W)olof palme(\W|$)", message_content, flags=re.IGNORECASE):