[V3] Cleanup

This commit is contained in:
aikaterna
2018-08-08 21:54:06 -07:00
parent aabe0cd6a5
commit be13d0f686
21 changed files with 431 additions and 175 deletions

13
pingtime/info.json Normal file
View 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"
}

View File

@@ -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)