From baf55da0dcef2f135fefe59cccca0b3252531a18 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 20 Jul 2020 21:02:26 -0400 Subject: More fixes --- bot.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bot.js') diff --git a/bot.js b/bot.js index 548b632..8779668 100644 --- a/bot.js +++ b/bot.js @@ -56,8 +56,7 @@ client.on('ready', () => { console.log(`Prefix: ${config.prefix}`); console.log(`Owner ID: ${config.botOwner}`); console.log(`Voice Channel: ${config.voiceChannel}`); - console.log(`Status Channel: ${config.statusChannel}`); - console.log('\n'); + console.log(`Status Channel: ${config.statusChannel}\n`); client.user.setStatus('invisible'); console.log('Connected to the voice channel.'); @@ -116,8 +115,7 @@ client.on('message', async msg => { if (!channel) return console.error('The channel does not exist!'); msg.reply('Leaving voice channel.'); console.log('Leaving voice channel.'); - dispatcher.pause(); - dispatcher = null; + dispatcher.destroy(); channel.leave(); } -- cgit v1.2.3