aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-07-20 21:02:26 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-07-20 21:02:26 -0400
commitbaf55da0dcef2f135fefe59cccca0b3252531a18 (patch)
tree7910d970cfaa2b1453aa51063afcd956cf9bc9e9
parent3747ae17c14127e0dd68ea443755c4850b968690 (diff)
downloadDLAP-baf55da0dcef2f135fefe59cccca0b3252531a18.tar.gz
DLAP-baf55da0dcef2f135fefe59cccca0b3252531a18.tar.bz2
DLAP-baf55da0dcef2f135fefe59cccca0b3252531a18.zip
More fixes
-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();
}