13.1.3 debug /money command
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user