diff options
author | Parker <contact@pkrm.dev> | 2024-03-31 02:14:00 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-03-31 02:14:00 -0500 |
commit | 246a424da20eb34929c880906ccb177d1b4e5370 (patch) | |
tree | 118345fba1f0261ea5c9c561a690db128c189c05 /code/cogs | |
parent | 6fca198184919c81e9d2129b2be24612c28825e2 (diff) |
Update skip command
Send the proper message and return if the end of the queue is reached once a song is skipped
Diffstat (limited to 'code/cogs')
-rw-r--r-- | code/cogs/skip.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |