From cbe754c57e35fdc96cd0d308f6ce5c38392b64bd Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Fri, 29 Mar 2024 13:25:09 +0000 Subject: [PATCH] Don't use a set for words --- cogs/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/events.py b/cogs/events.py index 6337f0b..bfd2efa 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -187,7 +187,7 @@ class Events(commands.Cog): if message.content: assets = Path.cwd() / "assets" words = re.split(r"\s+", message.content) - words = set(map(str.lower, words)) + words = tuple(map(str.lower, words)) if "lupupa" in words and (file := assets / "lupupa.jpg").exists(): await message.reply(file=discord.File(file), delete_after=60) elif any(word in words for word in ("fedora", "nix", "nixos")) and (file := assets / "fedora.jpg").exists():