Added poweroff

This commit is contained in:
Andrew Lee 2018-02-25 10:40:46 -05:00
parent a09d8da778
commit 94eeeec5b7

17
src/commands/poweroff.js Normal file
View file

@ -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',
};