From a9773eaa7124490ad05e5df283730d10a3991011 Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya <2023rumareti@tjhsst.edu> Date: Fri, 30 Oct 2020 11:02:54 -0400 Subject: [PATCH] added latency to ping --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 482061e..3bea96e 100644 --- a/bot.py +++ b/bot.py @@ -123,7 +123,7 @@ async def info(ctx, username): @bot.command(name='ping') async def ping(ctx) : - await ctx.send(":ping_pong: Pong") + await ctx.send(f":ping_pong: Pong `Latency: {format(round(bot.latency * 1000, 1))}ms`") @bot.command(name="whoami") @commands.has_role(ADMIN_ROLE)