From 246a424da20eb34929c880906ccb177d1b4e5370 Mon Sep 17 00:00:00 2001 From: Parker Date: Sun, 31 Mar 2024 02:14:00 -0500 Subject: [PATCH] Update skip command Send the proper message and return if the end of the queue is reached once a song is skipped --- code/cogs/skip.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/cogs/skip.py b/code/cogs/skip.py index 51d466e..ca7f3e0 100644 --- a/code/cogs/skip.py +++ b/code/cogs/skip.py @@ -41,6 +41,14 @@ class Skip(commands.Cog): await player.skip() + if not player.current: + embed = discord.Embed( + title="End of Queue", + description=f"All songs in queue have been played. Thank you for using Guava :wave:\n\nIssued by: {interaction.user.mention}", + color=BOT_COLOR + ) + return await interaction.response.send_message(embed=embed) + # It takes a sec for the new track to be grabbed and played # So just wait a sec before sending the message await asyncio.sleep(0.5)