aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/queue.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/music/queue.py')
-rw-r--r--cogs/music/queue.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cogs/music/queue.py b/cogs/music/queue.py
index 29f0c36..d932838 100644
--- a/cogs/music/queue.py
+++ b/cogs/music/queue.py
@@ -1,5 +1,6 @@
1from discord.ext import commands 1from discord.ext import commands
2 2
3
3class Queue(commands.Cog): 4class Queue(commands.Cog):
4 def __init__(self, bot): 5 def __init__(self, bot):
5 self.bot = bot 6 self.bot = bot
@@ -13,10 +14,11 @@ class Queue(commands.Cog):
13 guild_id = ctx.guild.id 14 guild_id = ctx.guild.id
14 queue = self.get_queue(guild_id) 15 queue = self.get_queue(guild_id)
15 if queue: 16 if queue:
16 queue_str = "\n".join(f"{i+1}. {title}" for i, (_, title, _) in enumerate(queue)) 17 queue_str = "\n".join(f"{i + 1}. {title}" for i, (_, title, _) in enumerate(queue))
17 await ctx.respond(f"koleyjka:\n{queue_str}") 18 await ctx.respond(f"koleyjka:\n{queue_str}")
18 else: 19 else:
19 await ctx.respond("koleyjka jest pustawa") 20 await ctx.respond("koleyjka jest pustawa")
20 21
22
21def setup(bot): 23def setup(bot):
22 bot.add_cog(Queue(bot)) \ No newline at end of file 24 bot.add_cog(Queue(bot))