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
@@ -66,6 +66,8 @@ 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');
let now = new Date();
let diff = (now - banking.guilds[GuildDB.serverID].lastIncome) / 1000;
diff /= (60 * 60);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dayz-armbands",
"version": "6.12.2",
"version": "6.12.3",
"description": "A General Purpose Discord Bot for DayZ Servers.",
"main": "index.js",
"nodemonConfig": {
-3
View File
@@ -102,9 +102,6 @@ module.exports = {
if (alarm.disabled || !alarm.rules.includes('ban_on_kill')) continue; // ignore if alarm is disabled or not ban on kill;
if (alarm.ignoredPlayers.includes(data.killerID)) continue;
console.log(data);
console.log(alarm);
let diff = [Math.round(alarm.origin[0] - data.killerPOS[0]), Math.round(alarm.origin[1] - data.killerPOS[1])];
let distance = Math.sqrt(Math.pow(diff[0], 2) + Math.pow(diff[1], 2)).toFixed(2)