Mateo-Wallace/Discord-DumBot

when looping queue, the previous song gets added to end of queue twice

Closed this issue · 1 comments

when looping queue, the previous song gets added to end of queue twice

This is an error that came about from a fix to another error. Essentially before when a song would end it would skip ahead 2 songs. In order to fix that I made it so when you use /skip it duplicates the next song if it isn't the same as the currently playing song, adds it next up in queue, skips over the first version, and plays the second version.

Unfortunately when you loop though now it duplicates the song twice instead of once due to the nature of the loop method. I prefer having loop be kind of broken then skip so for now there is no fix.