From 543ff28e572847c242c19ebc7e90ff8f2df6d788 Mon Sep 17 00:00:00 2001 From: auxipox <142419527+auxipox@users.noreply.github.com> Date: Wed, 28 Feb 2024 17:01:48 +0100 Subject: [PATCH] Update funreplies.py --- src/cogs/funreplies.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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):