diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-12 21:57:11 -0400 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-12 21:57:11 -0400 |
| commit | 0913f19fede8e4e22682a744f8b72d5c6a666d1d (patch) | |
| tree | 6486c997b3481611e7651b477d70e8ce1f853ad4 /commands/Owners Only | |
| parent | 7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87 (diff) | |
| download | PokeBot-0913f19fede8e4e22682a744f8b72d5c6a666d1d.tar.gz PokeBot-0913f19fede8e4e22682a744f8b72d5c6a666d1d.tar.bz2 PokeBot-0913f19fede8e4e22682a744f8b72d5c6a666d1d.zip | |
hopefully not breaking anything :pray:
Diffstat (limited to 'commands/Owners Only')
| -rw-r--r-- | commands/Owners Only/modifycredits.js | 51 | ||||
| -rw-r--r-- | commands/Owners Only/testingcredits.js | 47 |
2 files changed, 48 insertions, 50 deletions
diff --git a/commands/Owners Only/modifycredits.js b/commands/Owners Only/modifycredits.js index eb56478..a714ea8 100644 --- a/commands/Owners Only/modifycredits.js +++ b/commands/Owners Only/modifycredits.js @@ -18,31 +18,30 @@ * * *************************************/ -exports.run = async (bot, msg, args) => { - 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(); - }; - - var oldbal = bot.plugins.economy.get(user.id) +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.'); - bot.plugins.economy.subtract(user.id, oldbal); + let user; + if (!msg.mentions.members.first()) { + user = msg.author; + } else { + user = msg.mentions.members.first(); + } - msg.channel.send(`Reset ${user.tag}'s credits.`); - }; - - 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 + var oldbal = bot.plugins.economy.get(user.id); + + bot.plugins.economy.subtract(user.id, oldbal); + + msg.channel.send(`Reset ${user.tag}'s credits.`); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'modifycredits', + description: 'Modifies the credits of a user', + usage: '@user <credits>', +}; diff --git a/commands/Owners Only/testingcredits.js b/commands/Owners Only/testingcredits.js index 76a6451..e902df8 100644 --- a/commands/Owners Only/testingcredits.js +++ b/commands/Owners Only/testingcredits.js @@ -18,29 +18,28 @@ * * *************************************/ -exports.run = async (bot, msg, args) => { - 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(); - }; +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.'); - bot.plugins.economy.add(user.id, 50); + let user; + if (!msg.mentions.members.first()) { + user = msg.author; + } else { + user = msg.mentions.members.first(); + } - msg.channel.send('Added 50 credits'); - }; - - exports.conf = { - aliases: [], - guildOnly: true, - }; - - exports.help = { - name: 'testingcredits', - description: 'Modifies the credits of a user', - usage: '@user <credits>', - }; -
\ No newline at end of file + bot.plugins.economy.add(user.id, 50); + + msg.channel.send('Added 50 credits'); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'testingcredits', + description: 'Modifies the credits of a user', + usage: '@user <credits>', +}; |
