music loop fix rel

This commit is contained in:
ChomeNS 2022-11-09 19:40:48 +07:00
parent ecaf7900e6
commit 149fe83dc0

View file

@ -30,7 +30,12 @@ function inject(bot) {
startTime = 0;
noteIndex = 0;
bot.music.skip = function() {
bot.music.queue.shift();
if (bot.music.loop === 2) {
bot.music.queue.push(bot.music.queue.shift());
bot.music.play(bot.music.queue[0]);
} else {
bot.music.queue.shift();
}
resetTime();
};