From 8060430754171a58a61ffa37b07cd24e1c6c4768 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sat, 3 Aug 2024 02:16:38 +0100 Subject: [PATCH] fix latency being nanoseconds --- app/modules/latency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/latency.py b/app/modules/latency.py index 87ba51d..85097ef 100644 --- a/app/modules/latency.py +++ b/app/modules/latency.py @@ -6,4 +6,4 @@ class LatencyModule(niobot.Module): async def latency(self, ctx: niobot.Context): """See the bot's latency.""" latency = ctx.latency - return await ctx.respond("Latency: {:.2f}ms".format(latency * 1000)) + return await ctx.respond("Latency: {:,.2f}ms".format(latency))