debug combat log detection
This commit is contained in:
1 parent
9d0e468142
commit
d111a4be94
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "6.3.15",
|
"version": "6.3.16",
|
||||||
"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": {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ 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 (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);
|
let guild = await client.GetGuild(guildId);
|
||||||
if (!client.exists(guild.connectionLogsChannel)) return;
|
if (!client.exists(guild.connectionLogsChannel)) return;
|
||||||
@@ -52,4 +52,4 @@ module.exports = {
|
|||||||
|
|
||||||
return channel.send({ embeds: [combatLog] });
|
return channel.send({ embeds: [combatLog] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user