diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-07-10 17:20:37 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-07-10 17:20:37 -0400 |
| commit | 6b8154ba82c8089bcb47e2d3b6fea66353ba27bc (patch) | |
| tree | 6c1ef956a2e46b1fc7fdabe56dd60da67f243398 /AudioBackend.js | |
| parent | 10e93faf891c3fa3a68edb59d4ffb9d939680dc6 (diff) | |
| download | DLAP-6b8154ba82c8089bcb47e2d3b6fea66353ba27bc.tar.gz DLAP-6b8154ba82c8089bcb47e2d3b6fea66353ba27bc.tar.bz2 DLAP-6b8154ba82c8089bcb47e2d3b6fea66353ba27bc.zip | |
Fixed an issue where it doesn't shuffle properly
Diffstat (limited to 'AudioBackend.js')
| -rw-r--r-- | AudioBackend.js | 5 |
1 files changed, 2 insertions, 3 deletions
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) { |
