diff options
| author | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-11 22:37:55 -0400 |
|---|---|---|
| committer | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-11 22:37:55 -0400 |
| commit | 25a6a195212e91930a2605e67458b81ba21ecf07 (patch) | |
| tree | a391398446b3165b985b9ac396892a5559a656c6 | |
| parent | 5049c307323d6b717625ec29f514757b907c5a57 (diff) | |
| download | PokeBot-25a6a195212e91930a2605e67458b81ba21ecf07.tar.gz PokeBot-25a6a195212e91930a2605e67458b81ba21ecf07.tar.bz2 PokeBot-25a6a195212e91930a2605e67458b81ba21ecf07.zip | |
modifycredits
| -rw-r--r-- | commands/Owners Only/modifycredits.js | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/commands/Owners Only/modifycredits.js b/commands/Owners Only/modifycredits.js new file mode 100644 index 0000000..df08163 --- /dev/null +++ b/commands/Owners Only/modifycredits.js @@ -0,0 +1,46 @@ +/** ************************************** + * + * Modify Credits: Plugin for PokeBot that modifies economy features. + * 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) => { + if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot to use this command.'); + + let user; + if (!msg.mentions.members.first()) { + user = msg.author; + } else { + user = msg.mentions.members.first(); + }; + + bot.plugins.economy.add(user.id, args[0]); + + msg.channel.send(`Modified ${user.tag}'s credits by ` + args[0] + `.`); + }; + + exports.conf = { + aliases: [], + guildOnly: true, + }; + + exports.help = { + name: 'modifycredits', + description: 'Modifies the credits of a user', + usage: '@user <credits>', + }; +
\ No newline at end of file |
