From fdc0ee267e6a2076b4e589ad7728f6112aae3d44 Mon Sep 17 00:00:00 2001 From: Kamal Curi Date: Sun, 16 Apr 2023 15:58:20 -0300 Subject: [PATCH] FIX: qsearch command now works properly --- utils/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/commands.py b/utils/commands.py index 19ee820..b40babb 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -285,7 +285,7 @@ async def weather(bot: object, *location: str) -> str: @client.command(aliases=['qcontains', 'qsearch']) -async def quote_contains(bot: object, part: str) -> str: +async def quote_contains(bot: object, *part: str) -> str: """ Filter quote by part of saved message. """ @@ -295,6 +295,8 @@ async def quote_contains(bot: object, part: str) -> str: return await bot.send("_If you don't tell me the part, how the fuck do you expect me to "\ f"find it to you!?_\n(The correct syntax is {syntax})") + part = ' '.join(part) + quotes = get_quote_contains(part) if not quotes: