mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 20:28:55 -05:00
Hotfix for loop, minor typos
This commit is contained in:
parent
1e592cb795
commit
533c59de97
@ -184,6 +184,7 @@ class Audio:
|
|||||||
msg = ctx.message
|
msg = ctx.message
|
||||||
if self.music_player.is_playing():
|
if self.music_player.is_playing():
|
||||||
if await self.is_alone_or_admin(msg.author):
|
if await self.is_alone_or_admin(msg.author):
|
||||||
|
self.current = -1
|
||||||
self.playlist = [self.downloader["URL"]]
|
self.playlist = [self.downloader["URL"]]
|
||||||
await self.bot.say("I will play this song on repeat.")
|
await self.bot.say("I will play this song on repeat.")
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -108,5 +108,5 @@ def setup(bot):
|
|||||||
try:
|
try:
|
||||||
from imgurpython import ImgurClient
|
from imgurpython import ImgurClient
|
||||||
except:
|
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))
|
bot.add_cog(Image(bot))
|
||||||
|
|||||||
1
red.py
1
red.py
@ -187,6 +187,7 @@ async def setprefix(*text):
|
|||||||
|
|
||||||
@bot.command(name="uptime")
|
@bot.command(name="uptime")
|
||||||
async def _uptime():
|
async def _uptime():
|
||||||
|
"""Shows Red's uptime"""
|
||||||
up = abs(bot.uptime - int(time.perf_counter()))
|
up = abs(bot.uptime - int(time.perf_counter()))
|
||||||
up = str(datetime.timedelta(seconds=up))
|
up = str(datetime.timedelta(seconds=up))
|
||||||
await bot.say("`Uptime: {}`".format(up))
|
await bot.say("`Uptime: {}`".format(up))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user