debug combat log detection

This commit is contained in:
Braeden Sowinski committed 2023-04-16 11:58:46 -07:00
1 parent 9d0e468142
commit d111a4be94
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dayz-armbands",
"version": "6.3.15",
"version": "6.3.16",
"description": "A General Purpose Discord Bot for DayZ Servers.",
"main": "index.js",
"nodemonConfig": {
+1 -1
View File
@@ -35,7 +35,7 @@ module.exports = {
// If diff is greater than 5 minutes, not a combat log
// or if death after last combat and death was before logout event
if (diffMins > 5 || (data.lastDamageDate < data.lastDeathDate && data.lastDeathDate < newDt)) return;
if (diff > 5 || (data.lastDamageDate < data.lastDeathDate && data.lastDeathDate < newDt)) return;
let guild = await client.GetGuild(guildId);
if (!client.exists(guild.connectionLogsChannel)) return;