freyacodes / ukulele

Simple self-contained Discord music bot
MIT License
157 stars 75 forks source link

Feature Request: Removing/jumping to a specific song from the queue #34

Open xsakuraa opened 2 years ago

xsakuraa commented 2 years ago

I think a nice thing to add would be the ability to remove/jump to a specific song in the queue if you have multiple songs, for example:

::q (then you search to the song you want to find, for example number 32 in the queue) ::remove 32 or ::jump 32 something like that? otherwise the bot is really great to use so thank you!!

freyacodes commented 2 years ago

This is sensible. I would call it something like ::skipto 32

Perhaps it can also be something like ::skipto chet baker that matches song titles

AGSPhoenix commented 2 years ago

I'm not sure it's clear what skipto should do, or rather what users would expect it to do.

Option 1: Discard the currently playing track, then move the indicated item to the front of the line. All other items remain queued. However, this ignores any intended order in the queue, so if there's a lot of genre A queued followed by some genre B, and listeners decide to skip genre A, this won't do that. Option 2: Discard the current track and all intermediate tracks to make the indicated item next, effectively 'fast forwarding' to that point in the queue. However, this would immediately (and probably permanently) destroy a queue that could be annoying to rebuild, especially on mobile.

I think the best option would be Option 2 along with a new command to move items in the queue to support the usecase of Option 1.