From ac316088f53c82a23d07fe220bd133bbc8ec65fb Mon Sep 17 00:00:00 2001 From: TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> Date: Sat, 24 Mar 2018 15:31:16 -0400 Subject: wow --- commands/Moderation/setSuggestions.js | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 commands/Moderation/setSuggestions.js (limited to 'commands/Moderation/setSuggestions.js') diff --git a/commands/Moderation/setSuggestions.js b/commands/Moderation/setSuggestions.js new file mode 100644 index 0000000..2fcd880 --- /dev/null +++ b/commands/Moderation/setSuggestions.js @@ -0,0 +1,37 @@ +/** ************************************** + * + * Set Suggestions: Plugin for PokeBot that performs moderation actions. + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * *************************************/ + +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('suggestions', args[0], msg.guild.id); + msg.reply('Alright, I have set the suggestions channel to ' + args[0]); + }; + + exports.conf = { + aliases: [], + guildOnly: true, + }; + + exports.help = { + name: 'setSuggestions', + description: 'Set\'s the Suggestions Channel.', + usage: '', + }; + \ No newline at end of file -- cgit v1.2.3