From f3b4f8abb563759bb6ca3ef2e85e8c624d91816d Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 21 Jul 2020 14:01:00 -0400 Subject: New embed --- bot.js | 9 ++++++--- 1 file 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); -- cgit v1.2.3