aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/music.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-10-31 00:26:00 -0500
committerParker <contact@pkrm.dev>2024-10-31 00:26:00 -0500
commit70e612882d1093b133d13302dccfba6aa2778474 (patch)
tree6b26a4dc377ccf209c37eabf673d6031fdc10987 /code/cogs/music.py
parentc1b229f34c010108b0e7eb92de2102dfc07ae70c (diff)
`black --line-length 79`
Diffstat (limited to 'code/cogs/music.py')
-rw-r--r--code/cogs/music.py38
1 files changed, 30 insertions, 8 deletions
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 </bug:1224840889906499626> if this issue persists.",
+ "description": (
+ "An error occured with the Lavalink server. Please"
+ " submit a bug report with </bug:1224840889906499626>"
+ " 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):