From 1caa99de4aaa890b64f90399387adf365b54c80a Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 23 Feb 2018 21:58:27 -0500 Subject: FInished poweroff --- commands/poweroff.js | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/commands/poweroff.js b/commands/poweroff.js index 480ce0a..e5e26b8 100644 --- a/commands/poweroff.js +++ b/commands/poweroff.js @@ -1,23 +1,21 @@ exports.run = (bot, msg) => { - if (msg.author.id !== ( - "242775871059001344", "247221105515823104" - )); - msg.reply('Nope! You need the person who created this bot to use this command.') - else { - msg.reply(":warning: Pokebot is now powering off!") - console.log('Pokebot is now powering off...') - process.exit(0) - } - }; - - exports.conf = { - aliases: [], - guildOnly: true, - }; - - exports.help = { - name: 'poweroff', - description: 'Powers off the bot.', - category: 'Owners Only', - }; - \ No newline at end of file + if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) { + msg.reply('Nope! You need the person who created this bot to use this command.'); + } + else { + msg.reply(':warning: Pokebot is now powering off!'); + console.log('Pokebot is now powering off...'); + process.exit(0); + } +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'poweroff', + description: 'Powers off the bot.', + category: 'Owners Only', +}; -- cgit v1.2.3