Update funreplies.py

This commit is contained in:
auxipox authored and GitHub committed 2024-02-28 17:01:48 +01:00
1 parent 3d455bbb25
commit 543ff28e57
1 file changed
+7 -4
+7 -4
View File
@@ -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):