From 1e00a6d3c9fae0e56aa51e859b7e96a2abfbc1c1 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 21 Jul 2020 16:04:20 -0400 Subject: Stuff --- bot.js | 3 +++ 1 file changed, 3 insertions(+) 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}!`); -- cgit v1.2.3