From 149fe83dc031657efb4424d0e1c9c8b7570ee25a Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Wed, 9 Nov 2022 19:40:48 +0700 Subject: [PATCH] music loop fix rel --- plugins/music.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/music.js b/plugins/music.js index feb2877..1f13128 100644 --- a/plugins/music.js +++ b/plugins/music.js @@ -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(); };