ping: make stuff more consistent

This commit is contained in:
Ave Ozkal 2018-12-29 22:09:49 +03:00
parent 4d27ab9af5
commit 4e1f59f3fc
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -58,7 +58,9 @@ class Basic:
rtt_ms = (after - before) * 1000 rtt_ms = (after - before) * 1000
gw_ms = self.bot.latency * 1000 gw_ms = self.bot.latency * 1000
message_text = f":ping_pong: rtt: `{rtt_ms:.1f}ms`, `gw: {gw_ms:.1f}ms`" message_text = f":ping_pong:\n"\
f"rtt: `{rtt_ms:.1f}ms`\n"\
f"gw: `{gw_ms:.1f}ms`"
self.bot.log.info(message_text) self.bot.log.info(message_text)
await tmp.edit(content=message_text) await tmp.edit(content=message_text)