fix latency being nanoseconds

This commit is contained in:
Nexus 2024-08-03 02:16:38 +01:00
parent 3a92ba3b99
commit 8060430754

View file

@ -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))