From a06d70c730acbf81c8e9072ed9ce91681afd25e7 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 21 May 2020 16:41:01 -0400 Subject: Added embeds when booting the bot and addeed auto role --- commands/poweroff.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'commands/poweroff.js') diff --git a/commands/poweroff.js b/commands/poweroff.js index f336bed..3af23b8 100644 --- a/commands/poweroff.js +++ b/commands/poweroff.js @@ -18,8 +18,13 @@ * * *************************************/ module.exports.run = async (client, message, args) => { + const Discord = require('discord.js'); if (!['242775871059001344',].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot to use this command.'); - await client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot is now going offline."); + const embed = new Discord.RichEmbed() + .setAuthor("AleeBot Status", client.user.avatarURL) + .setDescription("AleeBot is now going offline...") + .setColor("#ff3333") + await client.channels.find('id', '606602551634296968').send({embed}); await message.reply(':warning: AleeBot will now exit!'); client.destroy(); process.exit(0); -- cgit v1.2.3