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/interrogate.js | 2 +- commands/jail.js | 2 +- commands/poweroff.js | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'commands') diff --git a/commands/interrogate.js b/commands/interrogate.js index 5630114..ea7de53 100644 --- a/commands/interrogate.js +++ b/commands/interrogate.js @@ -18,7 +18,7 @@ * * *************************************/ module.exports.run = async (client, message, args) => { - if (message.guild.id != '243022206437687296') return message.reply ('This is a ACN exclusive command.'); + if (message.guild.id != '243022206437687296') return message.reply ('This is a ALP exclusive command.'); if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply('It looks like that you don\'t have the permissions to jail members.'); if (!message.guild.member(client.user).hasPermission('MANAGE_ROLES')) return message.reply('Uhh... I don\'t have permission to jail members.'); diff --git a/commands/jail.js b/commands/jail.js index 18cbfb1..e1ba85f 100644 --- a/commands/jail.js +++ b/commands/jail.js @@ -18,7 +18,7 @@ * * *************************************/ module.exports.run = async (client, message, args) => { - if (message.guild.id != '243022206437687296') return message.reply ('This is a ACN exclusive command.'); + if (message.guild.id != '243022206437687296') return message.reply ('This is a ALP exclusive command.'); if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply('It looks like that you don\'t have the permissions to jail members.'); if (!message.guild.member(client.user).hasPermission('MANAGE_ROLES')) return message.reply('Uhh... I don\'t have permission to jail members.'); 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