aboutsummaryrefslogtreecommitdiff
path: root/src/commands/poweroff.js
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-02-25 14:54:37 -0500
committerAlee <alee14498@gmail.com>2018-02-25 14:54:37 -0500
commit3e06bff720bd660ef41ce2e149004836595b4e40 (patch)
tree0f66307832ceca562df3d13bbdd6fd46e4625ac5 /src/commands/poweroff.js
parent2297ebb012e5522ce3b8360c404f522ed30dd985 (diff)
parent94eeeec5b7d4d29ae9d372fc1b86ce5351112548 (diff)
downloadAleeBot-3e06bff720bd660ef41ce2e149004836595b4e40.tar.gz
AleeBot-3e06bff720bd660ef41ce2e149004836595b4e40.tar.bz2
AleeBot-3e06bff720bd660ef41ce2e149004836595b4e40.zip
2.0 release (I hope it will work)
Diffstat (limited to 'src/commands/poweroff.js')
-rw-r--r--src/commands/poweroff.js17
1 files changed, 17 insertions, 0 deletions
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