change/logs-handler-information-logger
This commit is contained in:
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user