debug collect income
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -66,7 +66,7 @@ module.exports = {
|
|||||||
if (!success) return client.sendInternalError(interaction, 'Failed to add bank');
|
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 now = new Date();
|
||||||
let diff = (now - banking.guilds[GuildDB.serverID].lastIncome) / 1000;
|
let diff = (now - banking.guilds[GuildDB.serverID].lastIncome) / 1000;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "6.12.3",
|
"version": "6.12.4",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user