Ask coding questions

← Back to all posts
How to do a Ping command?
ntomoon

How do you do a ping command?
Ex.
Me: #ping
Bot: 145ms

My language is Python btw...

Voters
ntomoon
Comments
hotnewtop
Wumi4

You can use the os module:

Also, you mean ping to your bot's server or what? I don't use Discord.