mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-08-02 03:21:31 +00:00
/status now returns bot latency
This commit is contained in:
5
bot.py
5
bot.py
@@ -43,7 +43,10 @@ async def status(ctx: commands):
|
|||||||
message = ""
|
message = ""
|
||||||
try:
|
try:
|
||||||
message = "Contact MisterBiggs#0465 if you need help.\n"
|
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:
|
except Exception as ex:
|
||||||
logging.critical(ex)
|
logging.critical(ex)
|
||||||
message += (
|
message += (
|
||||||
|
Reference in New Issue
Block a user