13.1.2 debug bank related commands

This commit is contained in:
SowinskiBraeden committed 2022-10-25 11:54:56 -07:00
1 parent b90052542c
commit b1cf688fac
7 files changed
+16 -20

No files matched your search

+2 -2
View File
@@ -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,
}
};;
};