aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-07-21 14:01:00 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-07-21 14:01:00 -0400
commitf3b4f8abb563759bb6ca3ef2e85e8c624d91816d (patch)
tree94e79cc04b22ea989689bb9db9bbd536b1c18bc2
parentceaf9119022e7daacb49875b189e8fe2bd48e94d (diff)
downloadDLAP-f3b4f8abb563759bb6ca3ef2e85e8c624d91816d.tar.gz
DLAP-f3b4f8abb563759bb6ca3ef2e85e8c624d91816d.tar.bz2
DLAP-f3b4f8abb563759bb6ca3ef2e85e8c624d91816d.zip
New embed
-rw-r--r--bot.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/bot.js b/bot.js
index a61ea5f..b4b0d30 100644
--- a/bot.js
+++ b/bot.js
@@ -46,9 +46,12 @@ 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 channel does not exist!');
- statusChannel.send('**Music Bot Status:**\nNow playing ' + audio);
+ statusChannel.send(statusEmbed);
});
dispatcher.on('error', console.error);
@@ -86,8 +89,8 @@ client.on('message', async msg => {
if (command == 'help') {
const helpEmbed = new Discord.MessageEmbed()
- .addField('Bot Help', `${config.prefix}help\n${config.prefix}ping\n${config.prefix}git\n${config.prefix}about`)
- .setFooter('© Copyright 2020, Andrew Lee. Licensed with GPL-3.0.')
+ .addField('Bot Help', `${config.prefix}help\n${config.prefix}ping\n${config.prefix}git\n${config.prefix}about\n`)
+ .setFooter('© Copyright 2020 Andrew Lee. Licensed with GPL-3.0.')
.setColor('#0066ff')
msg.channel.send(helpEmbed);