Update funreplies.py

skal aldri regexe igjen
This commit is contained in:
rkh00 authored and GitHub committed 2024-02-06 15:25:08 +01:00
1 parent 321fc890ed
commit da4bec0c44
1 file changed
+1 -1
+1 -1
View File
@@ -71,7 +71,7 @@ class FunReplies(commands.Cog):
await message.reply("<:Nei:826593267642662912>")
self.previous_invokations["yeet"] = datetime.now()
elif re.search(r"(^|\W)skal aldri drikke\s?\w*\s?igjen($|\W)+", message_content, flags=re.IGNORECASE):
elif re.search(r"(^|\W)skal aldri drikke[\w\s]*igjen($|\W)+", message_content, flags=re.IGNORECASE):
if (datetime.now() - self.previous_invokations["drikke"]).seconds > self.cooldown_seconds:
await message.reply(":billed_cap:")
self.previous_invokations["drikke"] = datetime.now()