From 6664618ed1225e17f2e98ee8a44179181e3dcf9b Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 17 Jul 2022 16:32:31 -0400 Subject: Couple of tweaks --- AudioBackend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'AudioBackend.js') 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 => { -- cgit v1.2.3