From a20db1a7b853e8442902320a48db7d5b9ef90eec Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 20 Jul 2020 20:07:03 -0400 Subject: Fix some coding styles --- bot.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bot.js b/bot.js index 898d477..b8c07af 100644 --- a/bot.js +++ b/bot.js @@ -31,6 +31,7 @@ function playAudio() { } dispatcher = connection.play('./music/' + audio); + dispatcher.on('start', () => { console.log('Now playing ' + audio); let serviceChannel = client.channels.cache.get('606602551634296968'); @@ -83,11 +84,11 @@ client.on('message', async msg => { } if (command == 'git') { - msg.reply("This is the source code of this project.\nhttps://github.com/Alee14/PJ2020-Discord-Bot") + msg.reply('This is the source code of this project.\nhttps://github.com/Alee14/PJ2020-Discord-Bot'); } if (command == 'about') { - msg.channel.send("This bot was created by Andrew Lee. Written in Discord.JS and licensed with GPL-3.0.") + msg.channel.send('This bot was created by Andrew Lee. Written in Discord.JS and licensed with GPL-3.0.'); } if (![config.botOwner].includes(msg.author.id)) return; @@ -102,7 +103,7 @@ client.on('message', async msg => { } if (command == 'skip') { - msg.reply("Skipping `" + audio + "`...") + msg.reply('Skipping `' + audio + '`...') dispatcher.pause(); dispatcher = null playAudio(); -- cgit v1.2.3