mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-06-16 15:17:29 +00:00
This commit is contained in:
parent
5f3fcb4074
commit
9c37f5360c
17
bot.py
17
bot.py
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user