diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-21 16:04:20 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-21 16:04:20 -0400 |
| commit | 1e00a6d3c9fae0e56aa51e859b7e96a2abfbc1c1 (patch) | |
| tree | 2c0a93e12f5c621190bdf4865f2a4145f64f342a | |
| parent | 4ca58b27c9a0caebfa7b27a0bfe9dd0db8d5a5fc (diff) | |
| download | DLAP-1e00a6d3c9fae0e56aa51e859b7e96a2abfbc1c1.tar.gz DLAP-1e00a6d3c9fae0e56aa51e859b7e96a2abfbc1c1.tar.bz2 DLAP-1e00a6d3c9fae0e56aa51e859b7e96a2abfbc1c1.zip | |
Stuff
| -rw-r--r-- | bot.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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}!`); |
