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);
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user