Tidy up unused variable/old logic
This commit is contained in:
parent
fa9a78314f
commit
9f7c286078
@ -49,13 +49,8 @@ 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]
|
|
||||||
except IndexError:
|
|
||||||
# If the song is on repeat, catch the IndexError and get the current song
|
|
||||||
# Otherwise, pass
|
|
||||||
if player.loop == 1:
|
|
||||||
embed = create_embed(
|
embed = create_embed(
|
||||||
title="Song on Repeat",
|
title="Song on Repeat",
|
||||||
description=(
|
description=(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user