aboutsummaryrefslogtreecommitdiff
path: root/AudioBackend.js
diff options
context:
space:
mode:
Diffstat (limited to 'AudioBackend.js')
-rw-r--r--AudioBackend.js5
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) {