diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-20 20:07:03 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-20 20:07:03 -0400 |
| commit | a20db1a7b853e8442902320a48db7d5b9ef90eec (patch) | |
| tree | 14583cfc936bcd8a6d7b9465691b92529caee65c | |
| parent | a65df85c8c85cbeeffd0fc9b760be3b773a59865 (diff) | |
| download | DLAP-a20db1a7b853e8442902320a48db7d5b9ef90eec.tar.gz DLAP-a20db1a7b853e8442902320a48db7d5b9ef90eec.tar.bz2 DLAP-a20db1a7b853e8442902320a48db7d5b9ef90eec.zip | |
Fix some coding styles
| -rw-r--r-- | bot.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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(); |
