From 9f3b0e9a68ff2529ddc974c29614cc575b5a26c5 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 20 Jul 2020 20:41:47 -0400 Subject: Fixes on coding style --- bot.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bot.js b/bot.js index 0f7a87f..986ba19 100644 --- a/bot.js +++ b/bot.js @@ -56,7 +56,8 @@ 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}\n`) + console.log(`Status Channel: ${config.statusChannel}`); + console.log('\n'); client.user.setStatus('invisible'); console.log('Connected to the voice channel.'); @@ -105,7 +106,7 @@ client.on('message', async msg => { } if (command == 'skip') { - msg.reply('Skipping `' + audio + '`...') + msg.reply('Skipping `' + audio + '`...'); dispatcher.pause(); dispatcher = null playAudio(); @@ -114,13 +115,13 @@ client.on('message', async msg => { if (command == 'leave') { const channel = client.channels.cache.get(config.voiceChannel); if (!channel) return console.error('The channel does not exist!'); - msg.reply('Leaving voice channel.') + msg.reply('Leaving voice channel.'); console.log('Leaving voice channel.'); channel.leave(); } if (command == 'stop') { - await msg.reply('Powering off...') + await msg.reply('Powering off...'); console.log('Powering off...'); client.destroy(); process.exit(0); -- cgit v1.2.3