[V3] Cleanup
This commit is contained in:
13
pingtime/info.json
Normal file
13
pingtime/info.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"author": [
|
||||
"aikaterna"
|
||||
],
|
||||
"description": "It's ping... with latency. Shows all shards.",
|
||||
"install_msg": "Thanks for installing, have fun.",
|
||||
"short": "Ping pong.",
|
||||
"tags": [
|
||||
"pingtime",
|
||||
"latency"
|
||||
],
|
||||
"type": "COG"
|
||||
}
|
||||
@@ -2,7 +2,6 @@ from discord.ext import commands
|
||||
|
||||
|
||||
class Pingtime:
|
||||
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@@ -12,5 +11,5 @@ class Pingtime:
|
||||
latencies = self.bot.latencies
|
||||
msg = "Pong!\n"
|
||||
for shard, pingt in latencies:
|
||||
msg += "Shard {}/{}: {}ms\n".format(shard + 1, len(latencies), round(pingt*1000))
|
||||
msg += "Shard {}/{}: {}ms\n".format(shard + 1, len(latencies), round(pingt * 1000))
|
||||
await ctx.send(msg)
|
||||
|
||||
Reference in New Issue
Block a user