mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
Logic :!!
This commit is contained in:
parent
f7c7a6ad9f
commit
f99d8aab3a
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ class Mod(commands.Cog):
|
||||||
message: discord.Message
|
message: discord.Message
|
||||||
if message.author == user:
|
if message.author == user:
|
||||||
query_ = query.lower() if query else None
|
query_ = query.lower() if query else None
|
||||||
content_ = str(message.clean_content).lower()
|
content_ = str(message.clean_content or '').lower()
|
||||||
if query_ is not None and query_ in content_ or content_ in query_:
|
if query_ is not None and (query_ in content_ or content_ in query_):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
return await ctx.reply("\N{cross mark} No matches in cache.")
|
return await ctx.reply("\N{cross mark} No matches in cache.")
|
||||||
|
|
Loading…
Reference in a new issue