aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot.js b/bot.js
index 8f534c9..2afd613 100644
--- a/bot.js
+++ b/bot.js
@@ -46,9 +46,11 @@ function playAudio() {
dispatcher.on('start', () => {
console.log('Now playing ' + audio);
+
const statusEmbed = new Discord.MessageEmbed()
.addField('Now Playing', `${audio}`)
.setColor('#0066ff')
+
let statusChannel = client.channels.cache.get(config.statusChannel);
if (!statusChannel) return console.error('The status channel does not exist! Skipping.');
statusChannel.send(statusEmbed);
@@ -66,6 +68,7 @@ function playAudio() {
});
}
+
client.on('ready', () => {
console.log('Bot is ready!');
console.log(`Logged in as ${client.user.tag}!`);