From 49d6bc2047e5ca84786edf47a77d6559e360504a Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Thu, 8 Jun 2023 09:14:57 -0700 Subject: [PATCH] debug collect income --- commands/collect-income.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/collect-income.js b/commands/collect-income.js index 7044c44..d21af22 100644 --- a/commands/collect-income.js +++ b/commands/collect-income.js @@ -66,7 +66,7 @@ module.exports = { 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'); + 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; diff --git a/package.json b/package.json index f84e3b5..4b0b4f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "6.12.3", + "version": "6.12.4", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {