Update #10

Merged
PacketParker merged 26 commits from dev into main 2024-12-03 00:05:14 -06:00
Showing only changes of commit 9f7c286078 - Show all commits

View File

@ -49,26 +49,21 @@ class Skip(commands.Cog):
for i in range(number - 2, -1, -1): for i in range(number - 2, -1, -1):
player.queue.pop(i) player.queue.pop(i)
# If there is a next song, get it # If the queue is empty, but the current song is on repeat
try: if player.loop == 1 and not player.queue:
next_song = player.queue[0] embed = create_embed(
except IndexError: title="Song on Repeat",
# If the song is on repeat, catch the IndexError and get the current song description=(
# Otherwise, pass "There is nothing in queue, but the current song is on"
if player.loop == 1: " repeat. Use </stop:1224840890866991305> to stop"
embed = create_embed( " playing music."
title="Song on Repeat", ),
description=( )
"There is nothing in queue, but the current song is on" return await interaction.response.send_message(
" repeat. Use </stop:1224840890866991305> to stop" embed=embed, ephemeral=True
" playing music." )
), else:
) pass
return await interaction.response.send_message(
embed=embed, ephemeral=True
)
else:
pass
# Skip current track, continue skipping on LoadError # Skip current track, continue skipping on LoadError
while True: while True: