aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.js6
1 files changed, 2 insertions, 4 deletions
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();
}