chalda / DiscordBot

A chat bot for discord app based off discord.js
GNU General Public License v2.0
583 stars 355 forks source link

Add loop to music player #200

Closed nic-w closed 3 years ago

nic-w commented 3 years ago

154

Adds loop option to music player which will push the song to the end of the queue instead of removing it. Checks for queue containing atleast one song because in the event there is only one song in queue and it is playing, if user calls dequeue on index 0, the .push(.shift()) will add an undefined object to the array, which we do not want.

Einarin commented 3 years ago

Nice! Thanks for contributing!