From ba6a328c1c188d1a2b64ed2c3f8f677be8c17fcb Mon Sep 17 00:00:00 2001 From: Kamal Curi Date: Sat, 13 Aug 2022 15:04:54 -0300 Subject: [PATCH] ADD: Returns the id quote stack for testing and checking --- utils/commands.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/utils/commands.py b/utils/commands.py index e7aa1f0..848f9e9 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -50,3 +50,17 @@ async def random_quote(bot: object) -> str: return await bot.send(f'{chosen_one[0]}\n`By: {chosen_one[1]}`') except Exception as ex: return await bot.send(ex) + +@client.command(aliases=['qstack']) +async def random_quote(bot: object) -> str: + """ + Displays the 5 quote history stack + """ + id_stack = "" + for qid in quote_id_stack: + id_stack = id_stack + qid + + rmessage = "A list of the 5 latest message IDs follows: " + id_stack + + return await bot.sent(rmessage) +