s-hfarooq / AlmaBotter

Discord Bot for the UIUC 202x Server
https://discord.gg/2pFv4Wq
MIT License
0 stars 11 forks source link

Fixing Ping Variance #24

Closed zaxary closed 4 years ago

zaxary commented 4 years ago

Shouldnt we use Math.round(bot.ws.ping) instead because of how its more consistent, cause when I tried it I consistently got the same ping instead of variation.

s-hfarooq commented 4 years ago

Math.round(client.ws.ping) is specifically ping for the API while Date.now() - message.createdTimestamp is for message ping. I believe Tim originally wanted message ping, but we can have both