change/logs-handler-information-logger

This commit is contained in:
SowinskiBraeden committed 2023-08-31 13:50:45 -07:00
1 parent eefeada003
commit f6370a1ea2
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -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": {
+3 -1
View File
@@ -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;