diff options
| -rw-r--r-- | commands/Moderation/setSuggestions.js | 37 | ||||
| -rw-r--r-- | commands/Owners Only/testingcredits.js | 4 | ||||
| -rw-r--r-- | commands/Utility/suggest.js | 3 |
3 files changed, 41 insertions, 3 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 diff --git a/commands/Owners Only/testingcredits.js b/commands/Owners Only/testingcredits.js index e902df8..01d4934 100644 --- a/commands/Owners Only/testingcredits.js +++ b/commands/Owners Only/testingcredits.js @@ -28,9 +28,9 @@ exports.run = async (bot, msg) => { user = msg.mentions.members.first(); } - bot.plugins.economy.add(user.id, 50); + bot.plugins.economy.add(user.id, 1000); - msg.channel.send('Added 50 credits'); + msg.channel.send('Added 1000 credits'); }; exports.conf = { diff --git a/commands/Utility/suggest.js b/commands/Utility/suggest.js index 5345441..9a0179d 100644 --- a/commands/Utility/suggest.js +++ b/commands/Utility/suggest.js @@ -21,7 +21,8 @@ exports.run = (bot, msg, args) => { if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!'); const { RichEmbed } = require('discord.js'); - bot.channels.find('name', 'suggestions').send( + const suggestionChannel = await bot.plugins.settings.getStr('suggestions', member.guild.id); + bot.channels.find('id', suggestionChannel).send( new RichEmbed() .setColor (0x00ae86) .setTitle('Suggestion') |
