freyacodes / ukulele

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

Add Repeat Track Functionality #55

Closed JustinFreitas closed 1 year ago

JustinFreitas commented 2 years ago

This will add repeat track functionality to the already existing queue looping functionality. The queue looping had to be renamed to avoid collision with repeat track. All command aliases and help text have been updated to reflect the changes. When repeat track is enabled, the currently playing song will be continually added to the top of the queue until the repeat is toggled off or the song is skipped.

JustinFreitas commented 2 years ago

The looping was already there. I didn’t want to mess with it much. Feel free to alter the implementation or just close it if unacceptable.

On Apr 21, 2022, at 5:29 AM, Freya Arbjerg @.***> wrote:

 @freyacodes commented on this pull request.

It seems a bit confusing to me that you decided to go with two booleans. Would the code not be simpler with a repeat mode enum like REPEAT_ALL, REPEAT_ONE, OFF ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.