From 70e612882d1093b133d13302dccfba6aa2778474 Mon Sep 17 00:00:00 2001 From: Parker Date: Thu, 31 Oct 2024 00:26:00 -0500 Subject: `black --line-length 79` --- code/cogs/skip.py | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'code/cogs/skip.py') diff --git a/code/cogs/skip.py b/code/cogs/skip.py index dc87ba0..c35a203 100644 --- a/code/cogs/skip.py +++ b/code/cogs/skip.py @@ -15,7 +15,9 @@ class Skip(commands.Cog): @app_commands.command() @app_commands.check(Music.create_player) - @app_commands.describe(number="Optional: Number of songs to skip, default is 1") + @app_commands.describe( + number="Optional: Number of songs to skip, default is 1" + ) async def skip(self, interaction: discord.Interaction, number: int = 1): "Skips the song that is currently playing" player = self.bot.lavalink.player_manager.get(interaction.guild.id) @@ -32,7 +34,11 @@ class Skip(commands.Cog): elif number > len(player.queue): embed.title = "Number too Large" - embed.description = "The number you entered is larger than the number of songs in queue. If you want to stop playing music entirely, try the command." + embed.description = ( + "The number you entered is larger than the number of songs" + " in queue. If you want to stop playing music entirely," + " try the command." + ) return await interaction.response.send_message( embed=embed, ephemeral=True ) @@ -49,10 +55,16 @@ class Skip(commands.Cog): if player.loop == 1: embed = discord.Embed( title="Song on Repeat", - description="There is nothing in queue, but the current song is on repeat. Use to stop playing music.", + description=( + "There is nothing in queue, but the current song is on" + " repeat. Use to stop" + " playing music." + ), color=BOT_COLOR, ) - return await interaction.response.send_message(embed=embed, ephemeral=True) + return await interaction.response.send_message( + embed=embed, ephemeral=True + ) else: pass @@ -67,7 +79,10 @@ class Skip(commands.Cog): if not player.current: embed = discord.Embed( title="End of Queue", - description=f"All songs in queue have been played. Thank you for using me :wave:\n\nIssued by: {interaction.user.mention}", + description=( + "All songs in queue have been played. Thank you for using" + f" me :wave:\n\nIssued by: {interaction.user.mention}" + ), color=BOT_COLOR, ) return await interaction.response.send_message(embed=embed) @@ -77,7 +92,11 @@ class Skip(commands.Cog): await asyncio.sleep(0.5) embed = discord.Embed( title="Track Skipped", - description=f"**Now Playing: [{next_song.title}]({next_song.uri})** by {next_song.author}\n\nQueued by: {next_song.requester.mention}", + description=( + f"**Now Playing: [{next_song.title}]({next_song.uri})** by" + f" {next_song.author}\n\nQueued by:" + f" {next_song.requester.mention}" + ), color=BOT_COLOR, ) embed.set_thumbnail(url=next_song.artwork_url) -- cgit v1.2.3-70-g09d2