From 6b8154ba82c8089bcb47e2d3b6fea66353ba27bc Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 10 Jul 2022 17:20:37 -0400 Subject: Fixed an issue where it doesn't shuffle properly --- AudioBackend.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'AudioBackend.js') diff --git a/AudioBackend.js b/AudioBackend.js index 909882c..8b02766 100644 --- a/AudioBackend.js +++ b/AudioBackend.js @@ -95,13 +95,12 @@ export async function nextAudio(bot) { if (currentTrack >= totalTrack) { console.log('All beats in the playlist has finished, reshuffling...'); - await shufflePlaylist(bot); + return await shufflePlaylist(bot); } else { currentTrack++; audio = audioArray[currentTrack]; + return await playAudio(bot); } - - return await playAudio(bot); } export async function inputAudio(bot, integer) { -- cgit v1.2.3