2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

convert ping to int

This commit is contained in:
Nick80835
2020-05-03 16:44:01 -04:00
parent 640ad20324
commit 09f585d69f

View File

@@ -52,7 +52,7 @@ async def shutdown(event):
async def ping(event):
start = time_ns()
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`")