diff options
| author | SamlonDev <stankiewiczgracjan2019@gmail.com> | 2025-06-14 18:54:02 +0200 |
|---|---|---|
| committer | SamlonDev <stankiewiczgracjan2019@gmail.com> | 2025-06-14 18:54:02 +0200 |
| commit | 791e75cb2beeca45a6edf52b65f7e299e03b5eaf (patch) | |
| tree | cfee93211b7f8ac1c985325aaf8d9399b7a357ca /cogs/music/queue.py | |
| parent | temp downloads the files instead (diff) | |
| download | senator-sperma-791e75cb2beeca45a6edf52b65f7e299e03b5eaf.tar.gz senator-sperma-791e75cb2beeca45a6edf52b65f7e299e03b5eaf.zip | |
code-style issues
Diffstat (limited to 'cogs/music/queue.py')
| -rw-r--r-- | cogs/music/queue.py | 6 |
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 @@ | |||
| 1 | from discord.ext import commands | 1 | from discord.ext import commands |
| 2 | 2 | ||
| 3 | |||
| 3 | class Queue(commands.Cog): | 4 | class 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 | |||
| 21 | def setup(bot): | 23 | def setup(bot): |
| 22 | bot.add_cog(Queue(bot)) \ No newline at end of file | 24 | bot.add_cog(Queue(bot)) |
