mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-06-16 07:16:41 +00:00
/status now returns bot latency
This commit is contained in:
parent
5e90bf9eab
commit
1e64deeff5
5
bot.py
5
bot.py
@ -43,7 +43,10 @@ async def status(ctx: commands):
|
||||
message = ""
|
||||
try:
|
||||
message = "Contact MisterBiggs#0465 if you need help.\n"
|
||||
message += s.status("") + "\n"
|
||||
message += (
|
||||
s.status(f"Bot recieved your message in: {bot.latency*1000:.4f}ms") + "\n"
|
||||
)
|
||||
|
||||
except Exception as ex:
|
||||
logging.critical(ex)
|
||||
message += (
|
||||
|
Loading…
x
Reference in New Issue
Block a user