debug combat log

This commit is contained in:
SowinskiBraeden committed 2023-04-17 15:34:28 -07:00
1 parent cf46770ea5
commit e73ba298f4
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayz-armbands", "name": "dayz-armbands",
"version": "6.5.0", "version": "6.5.1",
"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": {
+2 -1
View File
@@ -35,7 +35,8 @@ module.exports = {
// If diff is greater than 5 minutes, not a combat log // If diff is greater than 5 minutes, not a combat log
// or if death after last combat and death was before logout event // or if death after last combat and death was before logout event
if (diff > 5 || (data.lastDamageDate < data.lastDeathDate && data.lastDeathDate < newDt)) return; if (data.lastDamageDate < data.lastDeathDate && data.lastDeathDate < newDt1) return;
if (diff > 5) return;
let guild = await client.GetGuild(guildId); let guild = await client.GetGuild(guildId);
if (!client.exists(guild.connectionLogsChannel)) return; if (!client.exists(guild.connectionLogsChannel)) return;