mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 01:53:39 +01:00
Don't use a set for words
This commit is contained in:
parent
a72006fd71
commit
cbe754c57e
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue