diff --git a/package.json b/package.json index 3b4128f..caf07a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "8.10.1", + "version": "8.10.2", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": { diff --git a/util/LogsHandler.js b/util/LogsHandler.js index 633cda3..ceb7db7 100644 --- a/util/LogsHandler.js +++ b/util/LogsHandler.js @@ -91,7 +91,7 @@ module.exports = { }); } - if (line.includes('pos=<')) { + if (line.includes('pos=<') && !line.includes('hit by')) { let data = [...line.matchAll(positionTemplate)][0]; if (!data) return stats; @@ -112,7 +112,9 @@ module.exports = { playerStat.lastPos = playerStat.pos; playerStat.pos = info.pos; playerStat.lastTime = playerStat.time; + playerstat.lastDate = playerStat.date; playerStat.time = `${info.time} EST`; + playerstat.date = await client.getDateEST(info.time); if (playerStatIndex == -1) stats.push(playerStat); else stats[playerStatIndex] = playerStat;