From 94eeeec5b7d4d29ae9d372fc1b86ce5351112548 Mon Sep 17 00:00:00 2001 From: Alee Date: Sun, 25 Feb 2018 10:40:46 -0500 Subject: [PATCH] Added poweroff --- src/commands/poweroff.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/commands/poweroff.js diff --git a/src/commands/poweroff.js b/src/commands/poweroff.js new file mode 100644 index 0000000..8016726 --- /dev/null +++ b/src/commands/poweroff.js @@ -0,0 +1,17 @@ +module.exports.run = async (client, message, args) => { + if (!['242775871059001344',].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot to use this command.'); + await message.reply(':warning: AleeBot will now exit!'); + process.exit(0); + }; + + exports.conf = { + aliases: ['reboot'], + guildOnly: false, + }; + exports.help = { + name: 'poweroff', + description: 'Turns off AleeBot.', + usage: 'poweroff', + category: '- Owners Only', + }; + \ No newline at end of file