Merge pull request #31 from rkh00/patch-3

Update funreplies.py
This commit is contained in:
Leander Furumo authored and GitHub committed 2024-02-06 15:27:18 +01:00
commit b723c563a0
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()