mirror of
https://github.com/Rushilwiz/2023bot.git
synced 2025-04-12 23:30:16 -04:00
added latency to ping
This commit is contained in:
parent
93ac9f8b5d
commit
a9773eaa71
2
bot.py
2
bot.py
|
@ -123,7 +123,7 @@ async def info(ctx, username):
|
||||||
|
|
||||||
@bot.command(name='ping')
|
@bot.command(name='ping')
|
||||||
async def ping(ctx) :
|
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")
|
@bot.command(name="whoami")
|
||||||
@commands.has_role(ADMIN_ROLE)
|
@commands.has_role(ADMIN_ROLE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user