Skip to content
← Back to Community
Ping! discord.py help needed
Profile icon
ReshiramWolfu

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 [earned 5 cycles]
View Answer
Voters
Profile icon
puzzleshock1
Profile icon
Benjo989
Profile icon
rahan18
Profile icon
dudexproyt
Profile icon
Dopest_Pleb
Profile icon
ReshiramWolfu
Comments
hotnewtop
Profile icon
Dopest_Pleb

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

Profile icon
ReshiramWolfu

@Dopest_Pleb Thank you!

Profile icon
Account426463

it's client.latency.