aboutsummaryrefslogtreecommitdiff
path: root/commands/poweroff.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-23 21:58:27 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-23 21:58:27 -0500
commit1caa99de4aaa890b64f90399387adf365b54c80a (patch)
treecf94a7f12bc75a6f242e30bc31f087b6defb4983 /commands/poweroff.js
parent3be4b7dd68ae507890a5f8e460be3e678a0e7c65 (diff)
downloadPokeBot-1caa99de4aaa890b64f90399387adf365b54c80a.tar.gz
PokeBot-1caa99de4aaa890b64f90399387adf365b54c80a.tar.bz2
PokeBot-1caa99de4aaa890b64f90399387adf365b54c80a.zip
FInished poweroff
Diffstat (limited to 'commands/poweroff.js')
-rw-r--r--commands/poweroff.js42
1 files changed, 20 insertions, 22 deletions
diff --git a/commands/poweroff.js b/commands/poweroff.js
index 480ce0a..e5e26b8 100644
--- a/commands/poweroff.js
+++ b/commands/poweroff.js
@@ -1,23 +1,21 @@
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
+ if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) {
+ 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',
+};