13.1.3 debug /money command

This commit is contained in:
SowinskiBraeden committed 2022-10-25 11:58:30 -07:00
1 parent b1cf688fac
commit 5846a2ebf2
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -107,8 +107,8 @@ module.exports = {
} }
let newBalance = args[0].name == 'add' 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[0].value
: banking.guilds[GuildDB.serverID].account.balance - args[0].options[1].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) { 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); if (err) return client.sendInternalError(interaction, err);
+1 -1
View File
@@ -2,7 +2,7 @@ require('dotenv').config();
module.exports = { module.exports = {
Dev: "PROD.", 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 Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
DefaultPrefix: "?", DefaultPrefix: "?",
ServerID: "955668596745461830", ServerID: "955668596745461830",