aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/skip.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-11-29 01:36:06 -0600
committerParker <contact@pkrm.dev>2024-11-29 01:36:06 -0600
commit4e8030eca4b1f4028268683ccfc7b481b1608dde (patch)
treed208e1c582733bd82993715b9cbc9266aca5390c /code/cogs/skip.py
parente2916fb0aaf5ae7c6306feb7bc13405aabb29ae6 (diff)
Largely embed wording changes + other small tweaks + combine pause commands
Diffstat (limited to 'code/cogs/skip.py')
-rw-r--r--code/cogs/skip.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/code/cogs/skip.py b/code/cogs/skip.py
index eb4bf51..a228444 100644
--- a/code/cogs/skip.py
+++ b/code/cogs/skip.py
@@ -75,15 +75,16 @@ class Skip(commands.Cog):
try:
await player.skip()
break
- except LoadError:
+ except LoadError as e:
continue
if not player.current:
embed = create_embed(
title="End of Queue",
description=(
- "All songs in queue have been played. Thank you for using"
- f" me :wave:\n\nIssued by: {interaction.user.mention}"
+ "I have left the voice channel as all songs in the queue"
+ " have been played.\n\n"
+ f"Issued by: {interaction.user.mention}"
),
)
return await interaction.response.send_message(embed=embed)
@@ -92,13 +93,9 @@ class Skip(commands.Cog):
# So just wait a sec before sending the message
await asyncio.sleep(0.5)
embed = create_embed(
- title="Track Skipped",
- description=(
- f"**Now Playing: [{next_song.title}]({next_song.uri})** by"
- f" {next_song.author}\n\nQueued by:"
- f" {next_song.requester.mention}"
+ title=(
+ f"{'Track Skipped' if number == 1 else f'{number} Tracks Skipped'}"
),
- thumbnail=next_song.artwork_url,
)
await interaction.response.send_message(embed=embed)