From 7a3306ee173a1e2f6c605c775e07453904f9576d Mon Sep 17 00:00:00 2001 From: kevincaires Date: Sun, 14 Aug 2022 11:18:38 -0300 Subject: [PATCH] FIX function name, and bo send method. --- utils/commands.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/commands.py b/utils/commands.py index 848f9e9..6d6d2b2 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -38,10 +38,10 @@ async def random_quote(bot: object) -> str: Get an random quote from database. """ while chosen_one[2] in quote_id_stack: - quotes = get_quote() - chosen_one = choice(quotes) + quotes = get_quote() + chosen_one = choice(quotes) - quote_id_stack.add(chosen_one[2]) + quote_id_stack.add(chosen_one[2]) if len(quote_id_stack) >= 5: quote_id_stack[0].pop() @@ -52,7 +52,7 @@ async def random_quote(bot: object) -> str: return await bot.send(ex) @client.command(aliases=['qstack']) -async def random_quote(bot: object) -> str: +async def queue_stack(bot: object) -> str: """ Displays the 5 quote history stack """ @@ -62,5 +62,5 @@ async def random_quote(bot: object) -> str: rmessage = "A list of the 5 latest message IDs follows: " + id_stack - return await bot.sent(rmessage) + return await bot.send(rmessage)