aboutsummaryrefslogtreecommitdiff
path: root/commands/Owners Only/poweroff.js
diff options
context:
space:
mode:
authorJustin <jtsshieh@outlook.com>2019-11-02 11:02:19 -0400
committerJustin <jtsshieh@outlook.com>2019-11-02 11:02:19 -0400
commit7031fa12ba79281edc49df972311c13ad0e8fa53 (patch)
tree60410a33fe45add85a9dc962c975be478f3f8cff /commands/Owners Only/poweroff.js
parent106530d5dc53166632a6a0ecc8930eb2b1ed4bfd (diff)
downloadPokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.gz
PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.bz2
PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.zip
es-lint settings added + linted all files
Diffstat (limited to 'commands/Owners Only/poweroff.js')
-rw-r--r--commands/Owners Only/poweroff.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/commands/Owners Only/poweroff.js b/commands/Owners Only/poweroff.js
index 3d2cbdd..bfd5f86 100644
--- a/commands/Owners Only/poweroff.js
+++ b/commands/Owners Only/poweroff.js
@@ -9,22 +9,24 @@
exports.run = async (bot, msg) => {
await msg.reply(':warning: Pokebot is now powering off!');
- await bot.user.setStatus('invisible')
+ 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;
+ if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(member.id)) {
+ return false;
+ }
return true;
-}
+};
exports.conf = {
aliases: ['reboot', 'restart'],
- guildOnly: true,
+ guildOnly: true
};
exports.help = {
name: 'poweroff',
- description: 'Powers off the bot.',
+ description: 'Powers off the bot.'
};