debug collect income

This commit is contained in:
SowinskiBraeden committed 2023-06-08 09:07:08 -07:00
1 parent 3fe27458b8
commit 7b6e0441eb
3 files changed
+3 -4

No files matched your search

+2
View File
@@ -65,6 +65,8 @@ module.exports = {
const success = addUser(banking.guilds, GuildDB.serverID, interaction.member.user.id, client, GuildDB.startingBalance);
if (!success) return client.sendInternalError(interaction, 'Failed to add bank');
}
if (!client.exists(banking.guilds[GuildDB.serverID].lastIncome)) banking.guilds[GuildDB.serverID].lastIncome: new Date('2000-01-01T00:00:00');
let now = new Date();
let diff = (now - banking.guilds[GuildDB.serverID].lastIncome) / 1000;