From 85d4ce8a62d5b7068b7c99890a1945b6a961ff08 Mon Sep 17 00:00:00 2001 From: TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> Date: Sun, 11 Mar 2018 22:52:18 -0400 Subject: fixes for the misses --- commands/Owners Only/modifycredits.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'commands/Owners Only/modifycredits.js') 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 = { -- cgit v1.2.3