Ask coding questions

← Back to all posts
Ping! discord.py help needed
ReshiramWolfu (100)

https://repl.it/@ReshiramWolfu/Alter-Ego-Bot-Discord

This is my code for my discord.py bot already, I want to know how to post the ping (in milliseconds) in the command dedicated for it, can someone help

Answered by Dopest_Pleb (19) [earned 5 cycles]
View Answer
Comments
hotnewtop
Dopest_Pleb (19)

Change your ping command code to await ctx.send(f'Pong! {client.latency}')

Account426463 (3)

it's client.latency.