diff options
| author | Justin <jtsshieh@outlook.com> | 2019-10-30 22:28:49 -0400 |
|---|---|---|
| committer | Justin <jtsshieh@outlook.com> | 2019-10-30 22:28:49 -0400 |
| commit | 2c3bf24f5996753df4a2d4456949fc0b636f6366 (patch) | |
| tree | 27700e9b0557d23a6fb0cbd9d4058d60d725caa0 /commands/Owners Only/poweroff.js | |
| parent | 5d778acf2066546de30f53d4d10c92a043a44a3a (diff) | |
| download | PokeBot-2c3bf24f5996753df4a2d4456949fc0b636f6366.tar.gz PokeBot-2c3bf24f5996753df4a2d4456949fc0b636f6366.tar.bz2 PokeBot-2c3bf24f5996753df4a2d4456949fc0b636f6366.zip | |
Added an optional checkPermission function and upgraded quick.db.
Diffstat (limited to 'commands/Owners Only/poweroff.js')
| -rw-r--r-- | commands/Owners Only/poweroff.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/commands/Owners Only/poweroff.js b/commands/Owners Only/poweroff.js index e369b0a..3d2cbdd 100644 --- a/commands/Owners Only/poweroff.js +++ b/commands/Owners Only/poweroff.js @@ -8,17 +8,17 @@ * *************************************/ exports.run = async (bot, msg) => { - if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) { - msg.reply('Nope! You need the person who created this bot to use this command.'); - } - else { - await msg.reply(':warning: Pokebot is now powering off!'); - await bot.user.setStatus('invisible') - console.log('Pokebot is now powering off...'); - process.exit(0); - } + await msg.reply(':warning: Pokebot is now powering off!'); + await bot.user.setStatus('invisible') + console.log('Pokebot is now powering off...'); + process.exit(0); }; +exports.checkPermission = (bot, member) => { + if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(member.id)) return false; + return true; +} + exports.conf = { aliases: ['reboot', 'restart'], guildOnly: true, |
