From 9c37f5360cf895ed01a614c174b08338d13244fc Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Thu, 11 Feb 2021 18:25:09 -0700 Subject: [PATCH] #4 --- bot.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bot.py b/bot.py index 4674394..7417ab8 100644 --- a/bot.py +++ b/bot.py @@ -34,6 +34,23 @@ async def on_ready(): print("------") +@bot.command() +async def status(ctx): + message = "" + try: + # IEX Status + message += s.iex_status() + "\n" + + # Message Status + message += s.message_status() + except Exception as ex: + message += ( + f"*\n\nERROR ENCOUNTERED:*\n{ex}\n\n" + + "*The bot encountered an error while attempting to find errors. Please contact the bot admin.*" + ) + await ctx.send(message) + + @bot.command() async def license(ctx): await ctx.send(s.license)