Merge pull request #30 from rkh00/patch-2

Update funreplies.py
This commit is contained in:
Leander Furumo authored and GitHub committed 2024-02-01 15:15:47 +01:00
commit 321fc890ed
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ class FunReplies(commands.Cog):
await message.reply(":billed_cap:")
self.previous_invokations["drikke"] = datetime.now()
elif re.search(r"/(^|\W)jeg er sivert arntzen($|\W)+/gmi", message_content, flags=re.IGNORECASE):
elif re.search(r"(^|\W)jeg er sivert arntzen($|\W)+", message_content, flags=re.IGNORECASE):
if (datetime.now() - self.previous_invokations["sivert"]).seconds > self.cooldown_seconds:
await message.reply("Nei, jeg er Sivert Arntzen!")
self.previous_invokations["sivert"] = datetime.now()