aboutsummaryrefslogtreecommitdiff
path: root/commands/Owners Only/modifycredits.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Owners Only/modifycredits.js')
-rw-r--r--commands/Owners Only/modifycredits.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/Owners Only/modifycredits.js b/commands/Owners Only/modifycredits.js
index 41798bb..eb56478 100644
--- a/commands/Owners Only/modifycredits.js
+++ b/commands/Owners Only/modifycredits.js
@@ -28,9 +28,11 @@ exports.run = async (bot, msg, args) => {
user = msg.mentions.members.first();
};
- bot.plugins.economy.add(user.id, args[0]);
+ var oldbal = bot.plugins.economy.get(user.id)
- msg.channel.send(`Modified ${user.tag}'s credits by ` + args[0] + `.`);
+ bot.plugins.economy.subtract(user.id, oldbal);
+
+ msg.channel.send(`Reset ${user.tag}'s credits.`);
};
exports.conf = {