From 4e8030eca4b1f4028268683ccfc7b481b1608dde Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 29 Nov 2024 01:36:06 -0600 Subject: Largely embed wording changes + other small tweaks + combine pause commands --- code/cogs/skip.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'code/cogs/skip.py') 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) -- cgit v1.2.3-70-g09d2