aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-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',
+};