From cfffaf82dade924fe0cb9c02f477577a470244f8 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sun, 3 Dec 2017 07:36:32 -0500 Subject: Fixed the power off command (jeez victor you don't know how to do it) --- bot.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bot.js b/bot.js index 5b25e50..01deb50 100644 --- a/bot.js +++ b/bot.js @@ -398,15 +398,20 @@ client.on('message', message => { */ message.channel.send("Good try... But we're not letting anyone reboot me yet!"); } else if (command === 'poweroff') { - /* + /* Heh really Victor :P log(message.guild.roles); if (message.guild.roles.get('Moderator').members.keyArray().includes(message.author.username)) { message.channel.send("Access Granted"); } else { message.channel.send("Access Denied"); }*/ - - message.channel.send("Well... vicr123 tried to code this... but it kept crashing... Ironic isn't it? :("); + if (message.author.id !== config.ownerID) + message.reply('Heh you can\'t turn me off :P') + else { + console.log('[i] AstralQuote is now powering off...') + process.exit(0) + } + } else if (command === 'help') { // This is the new help const embed = new Discord.RichEmbed() @@ -433,7 +438,7 @@ client.on('message', message => { "\n```"); } else if (command === 'easterwgg') { message.channel.send("```cpp\n" + - "Ha, you found an easter egg! Take that, !easteregg!" + + "Ha, you found an easter egg! Take that, aq:easteregg!" + "\n```"); } else if (command === 'contribute') { message.reply("I can see you want to help AQ? Welp here's the link: https://github.com/ATC-Parody/AstralQuote"); -- cgit v1.2.3