aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-07-20 20:07:03 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-07-20 20:07:03 -0400
commita20db1a7b853e8442902320a48db7d5b9ef90eec (patch)
tree14583cfc936bcd8a6d7b9465691b92529caee65c /bot.js
parenta65df85c8c85cbeeffd0fc9b760be3b773a59865 (diff)
downloadDLAP-a20db1a7b853e8442902320a48db7d5b9ef90eec.tar.gz
DLAP-a20db1a7b853e8442902320a48db7d5b9ef90eec.tar.bz2
DLAP-a20db1a7b853e8442902320a48db7d5b9ef90eec.zip
Fix some coding styles
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js7
1 files 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();