aboutsummaryrefslogtreecommitdiff
path: root/AudioBackend.js
diff options
context:
space:
mode:
Diffstat (limited to 'AudioBackend.js')
-rw-r--r--AudioBackend.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/AudioBackend.js b/AudioBackend.js
index 7d24b1c..0f68aa2 100644
--- a/AudioBackend.js
+++ b/AudioBackend.js
@@ -35,11 +35,12 @@ export const player = createAudioPlayer();
export let audio;
export const files = readdirSync('music');
let fileData;
+
+let totalTrack = files.length;
export let currentTrack;
export let playerState;
export let isAudioStatePaused;
-let totalTrack = files.length;
export async function voiceInit(bot) {
bot.channels.fetch(voiceChannel).then(async channel => {