From 5846a2ebf228ec546ffca035c0fbd30c451be523 Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Tue, 25 Oct 2022 11:58:30 -0700 Subject: [PATCH] 13.1.3 debug /money command --- commands/money.js | 4 ++-- config/config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/money.js b/commands/money.js index 1b3aa9f..c3b0f6d 100644 --- a/commands/money.js +++ b/commands/money.js @@ -107,8 +107,8 @@ module.exports = { } let newBalance = args[0].name == 'add' - ? banking.guilds[GuildDB.serverID].account.balance + args[0].options[1].value - : banking.guilds[GuildDB.serverID].account.balance - args[0].options[1].value; + ? banking.guilds[GuildDB.serverID].account.balance + args[0].options[0].value + : banking.guilds[GuildDB.serverID].account.balance - args[0].options[0].value; client.dbo.collection("banks").updateOne({"banking.userID":targetUserID},{$set:{[`banking.guilds.${GuildDB.serverID}.account.balance`]:newBalance}}, function(err, res) { if (err) return client.sendInternalError(interaction, err); diff --git a/config/config.js b/config/config.js index 00c0fc0..8ac5490 100644 --- a/config/config.js +++ b/config/config.js @@ -2,7 +2,7 @@ require('dotenv').config(); module.exports = { Dev: "PROD.", - Version: "13.1.2", // (major).(feature).(revision/bug/refactoring) + Version: "13.1.3", // (major).(feature).(revision/bug/refactoring) Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot DefaultPrefix: "?", ServerID: "955668596745461830",