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

View File

@ -184,6 +184,7 @@ class Audio:
msg = ctx.message
if self.music_player.is_playing():
if await self.is_alone_or_admin(msg.author):
self.current = -1
self.playlist = [self.downloader["URL"]]
await self.bot.say("I will play this song on repeat.")
else:

View File

@ -108,5 +108,5 @@ def setup(bot):
try:
from imgurpython import ImgurClient
except:
raise ModuleNotFound("imgurpython is not installed. Do 'pip install imgurpython' to use this cog.")
raise ModuleNotFound("imgurpython is not installed. Do 'pip3 install imgurpython' to use this cog.")
bot.add_cog(Image(bot))

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