mirror of
https://github.com/Alee14/AleeBot.git
synced 2025-01-23 03:31:47 -05:00
Added poweroff
This commit is contained in:
parent
a09d8da778
commit
94eeeec5b7
1 changed files with 17 additions and 0 deletions
17
src/commands/poweroff.js
Normal file
17
src/commands/poweroff.js
Normal 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',
|
||||
};
|
||||
|
Loading…
Reference in a new issue