From a9f706a54b49e9a08a86b1cfd961f7f110436b4b Mon Sep 17 00:00:00 2001 From: Alee Date: Fri, 23 Feb 2018 21:53:44 -0500 Subject: Help... me.... still... rusty.... in.... d...js.... --- commands/poweroff.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 commands/poweroff.js diff --git a/commands/poweroff.js b/commands/poweroff.js new file mode 100644 index 0000000..480ce0a --- /dev/null +++ b/commands/poweroff.js @@ -0,0 +1,23 @@ +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 -- cgit v1.2.3