add latency to ping command

This commit is contained in:
Infinidoge 2025-06-14 03:40:23 -04:00
parent bb6e5d2e8d
commit 0fcbc8af21
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -372,7 +372,7 @@ async def admin_eval(ctx, *, body: str):
@bot.command()
async def ping(ctx):
await ctx.send("Pong")
await ctx.send(f"Pong!\nLatency: {bot.latency*1000:.1f}ms")
@bot.command()