1
0
mirror of https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git synced 2025-06-16 07:16:41 +00:00
This commit is contained in:
Anson Biggs 2021-02-11 18:25:09 -07:00
parent 5f3fcb4074
commit 9c37f5360c

17
bot.py
View File

@ -34,6 +34,23 @@ async def on_ready():
print("------") 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() @bot.command()
async def license(ctx): async def license(ctx):
await ctx.send(s.license) await ctx.send(s.license)