remove cash system

This commit is contained in:
SowinskiBraeden committed 2023-06-06 19:21:34 -07:00
1 parent a9c257d5cc
commit acc0da7754
9 files changed
+38 -238

No files matched your search

+3 -9
View File
@@ -7,14 +7,11 @@ let userSchema = mongoose.Schema({
},
});
userSchema.methods.createUser = function (userID, guildID, startingBalance, cash) {
userSchema.methods.createUser = function (userID, guildID, startingBalance) {
this.user.userID = userID;
this.user.guilds = {};
this.user.guilds[guildID] = {
bankAccount: {
balance: startingBalance,
cash: cash,
},
balance: startingBalance,
lastIncome: new Date('2000-01-01T00:00:00'),
};
};
@@ -28,10 +25,7 @@ userSchema.methods.createUser = function (userID, guildID, startingBalance, cash
function addUser(guilds, guildID, userID, client, startingBalance) {
let updatedGuilds = guilds;
updatedGuilds[guildID] = {
bankAccount: {
balance: startingBalance,
cash: 0.00,
},
balance: startingBalance,
lastIncome: new Date('2000-01-01T00:00:00')
}