13.1.2 debug bank related commands
This commit is contained in:
7 files changed
+16
-20
No files matched your search
+2
-2
@@ -7,13 +7,13 @@ let bankSchema = mongoose.Schema({
|
||||
}
|
||||
});
|
||||
|
||||
bankSchema.methods.createBank = function (userID, guildID, startingBalance) {
|
||||
bankSchema.methods.createBank = function (userID, guildID, startingBalance, cash) {
|
||||
this.banking.userID = userID;
|
||||
this.banking.guilds = {};
|
||||
this.banking.guilds[guildID] = {
|
||||
account: {
|
||||
balance: startingBalance,
|
||||
cash: 0.00,
|
||||
cash: cash,
|
||||
}
|
||||
};;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user