aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/setLogs.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/Moderation/setLogs.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/Moderation/setLogs.js')
-rw-r--r--commands/Moderation/setLogs.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/commands/Moderation/setLogs.js b/commands/Moderation/setLogs.js
index e951c45..1eed5e6 100644
--- a/commands/Moderation/setLogs.js
+++ b/commands/Moderation/setLogs.js
@@ -7,24 +7,26 @@
*
* *************************************/
-exports.run = async (bot, msg, args) => {
+exports.run = (bot, msg, args) => {
bot.plugins.settings.setStr('logs', args[0], msg.guild.id);
- msg.reply('Alright, I have set the log channel to ' + args[0]);
+ msg.reply(`Alright, I have set the log channel to ${args[0]}`);
};
exports.checkPermission = (bot, member) => {
- if (!member.hasPermission('MANAGE_MESSAGES')) return 'You don\'t have permission to manage messages.';
+ if (!member.hasPermission('MANAGE_MESSAGES')) {
+ return 'You don\'t have permission to manage messages.';
+ }
return true;
-}
+};
exports.conf = {
aliases: [],
- guildOnly: true,
+ guildOnly: true
};
exports.help = {
name: 'setLogs',
description: 'Set\'s the Log Channel.',
- usage: '<channelID>',
+ usage: '<channelID>'
};