aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
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();