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'
? 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);