Hotfix for loop, minor typos

This commit is contained in:
Twentysix
2016-02-11 10:32:01 +01:00
parent 1e592cb795
commit 533c59de97
3 changed files with 3 additions and 1 deletions

1
red.py
View File

@@ -187,6 +187,7 @@ async def setprefix(*text):
@bot.command(name="uptime")
async def _uptime():
"""Shows Red's uptime"""
up = abs(bot.uptime - int(time.perf_counter()))
up = str(datetime.timedelta(seconds=up))
await bot.say("`Uptime: {}`".format(up))