mirror of
https://github.com/Nick80835/microbot
synced 2025-08-31 14:38:04 +00:00
convert ping to int
This commit is contained in:
@@ -52,7 +52,7 @@ async def shutdown(event):
|
|||||||
async def ping(event):
|
async def ping(event):
|
||||||
start = time_ns()
|
start = time_ns()
|
||||||
ping_msg = await event.reply("`Ping…`")
|
ping_msg = await event.reply("`Ping…`")
|
||||||
time_taken_ms = (time_ns() - start) / 1000000
|
time_taken_ms = int((time_ns() - start) / 1000000)
|
||||||
await ping_msg.edit(f"`Ping… Pong! -> `**{time_taken_ms}**`ms`")
|
await ping_msg.edit(f"`Ping… Pong! -> `**{time_taken_ms}**`ms`")
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user