diff options
| author | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-24 15:31:16 -0400 |
|---|---|---|
| committer | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-24 15:31:16 -0400 |
| commit | ac316088f53c82a23d07fe220bd133bbc8ec65fb (patch) | |
| tree | 3df48828f76dfb0581f16b32decc78a0eb1bf86d /commands/Moderation | |
| parent | 0b922294948ed3e1811aa166085775289f7ccfce (diff) | |
| download | PokeBot-ac316088f53c82a23d07fe220bd133bbc8ec65fb.tar.gz PokeBot-ac316088f53c82a23d07fe220bd133bbc8ec65fb.tar.bz2 PokeBot-ac316088f53c82a23d07fe220bd133bbc8ec65fb.zip | |
wow
Diffstat (limited to 'commands/Moderation')
| -rw-r--r-- | commands/Moderation/setSuggestions.js | 37 |
1 files changed, 37 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. + * + * *************************************/ + +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: '<channelID>', + }; +
\ No newline at end of file |
