简体   繁体   中英

How to make a ping pong bot in discord

simply I wanna make a ping pong bot in discord.py but the problem is that ion know how to check the latency between me and the bot & the bot and the discord client, I want those both. I already used client.latency and it was not my latency, what latency is this and how can I see both latencies as I mentioned above.

If you want to find your latency, you will be given it in seconds. client.latency will show you the correct latency. If you are not sure if you are receiving the correct latency, make sure to use the following metric:

Good Latency - <100ms
Bad Latency - >100ms

If you're getting a latency of 0.2, for example, then you may not have the best internet. Otherwise, if you're getting lower than that, you have a decent latency.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM