diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-20 21:02:26 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-20 21:02:26 -0400 |
| commit | baf55da0dcef2f135fefe59cccca0b3252531a18 (patch) | |
| tree | 7910d970cfaa2b1453aa51063afcd956cf9bc9e9 /bot.js | |
| parent | 3747ae17c14127e0dd68ea443755c4850b968690 (diff) | |
| download | DLAP-baf55da0dcef2f135fefe59cccca0b3252531a18.tar.gz DLAP-baf55da0dcef2f135fefe59cccca0b3252531a18.tar.bz2 DLAP-baf55da0dcef2f135fefe59cccca0b3252531a18.zip | |
More fixes
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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(); } |
