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/music.py | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'code/cogs/music.py') diff --git a/code/cogs/music.py b/code/cogs/music.py index 895a758..f3e98b4 100644 --- a/code/cogs/music.py +++ b/code/cogs/music.py @@ -112,7 +112,8 @@ class Music(commands.Cog): await node.get_version() except lavalink.errors.ClientError: LOG.error( - "Authentication to lavalink node failed. Check your login credentials." + "Authentication to lavalink node failed. Check your login" + " credentials." ) else: await node.connect() @@ -135,7 +136,11 @@ class Music(commands.Cog): raise CheckPlayerError( { "title": "Lavalink Error", - "description": "An error occured with the Lavalink server. Please submit a bug report with if this issue persists.", + "description": ( + "An error occured with the Lavalink server. Please" + " submit a bug report with " + " if this issue persists." + ), } ) @@ -147,14 +152,20 @@ class Music(commands.Cog): raise CheckPlayerError( { "title": "Not in my VC", - "description": "You must join my voice channel to run that command.", + "description": ( + "You must join my voice channel to run that" + " command." + ), } ) raise CheckPlayerError( { "title": "No Channel", - "description": "You must join a voice channel before you can run that command.", + "description": ( + "You must join a voice channel before you can run that" + " command." + ), } ) @@ -163,7 +174,10 @@ class Music(commands.Cog): raise CheckPlayerError( { "title": "Not Connected", - "description": "I am not connected and playing music right now, therefore that command will not work.", + "description": ( + "I am not connected and playing music right now," + " therefore that command will not work." + ), } ) @@ -175,7 +189,10 @@ class Music(commands.Cog): raise CheckPlayerError( { "title": "Missing Permissions", - "description": "I need the `CONNECT` and `SPEAK` permissions in order to work.", + "description": ( + "I need the `CONNECT` and `SPEAK` permissions in" + " order to work." + ), } ) @@ -185,7 +202,10 @@ class Music(commands.Cog): raise CheckPlayerError( { "title": "Not in my VC", - "description": "You must join my voice channel to run that command.", + "description": ( + "You must join my voice channel to run that" + " command." + ), } ) @@ -211,7 +231,9 @@ class Music(commands.Cog): inputs = {} for song in event.player.queue[:10]: inputs[song.title] = song.author - await add_song_recommendations(self.bot.openai, self.bot.user, event.player, 5, inputs) + await add_song_recommendations( + self.bot.openai, self.bot.user, event.player, 5, inputs + ) async def setup(bot): -- cgit v1.2.3-70-g09d2