aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/setLogs.js
blob: 8ae50ea0f44f5c48460711ab86b62ab1d98226df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/** **************************************
 *
 *   Set Log: Plugin for PokeBot that performs moderation actions.
 *   Copyright (C) 2018 TheEdge, jtsshieh, Alee
 *
 *   Licensed under the Open Software License version 3.0
 *
 * *************************************/

exports.run = async (bot, msg, args) => {
  if (!msg.member.hasPermission('MANAGE_MESSAGES')) return msg.reply('You don\'t have permission to manage messages.');
  bot.plugins.settings.setStr('logs', args[0], msg.guild.id);
  msg.reply('Alright, I have set the log channel to ' + args[0]);
};

exports.conf = {
  aliases: [],
  guildOnly: true,
};

exports.help = {
  name: 'setLogs',
  description: 'Set\'s the Log Channel.',
  usage: '<channelID>',
};