fix/logs-track-date
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "8.10.3",
|
"version": "8.10.4",
|
||||||
"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
-2
@@ -112,9 +112,9 @@ module.exports = {
|
|||||||
playerStat.lastPos = playerStat.pos;
|
playerStat.lastPos = playerStat.pos;
|
||||||
playerStat.pos = info.pos;
|
playerStat.pos = info.pos;
|
||||||
playerStat.lastTime = playerStat.time;
|
playerStat.lastTime = playerStat.time;
|
||||||
playerstat.lastDate = playerStat.date;
|
playerStat.lastDate = playerStat.date;
|
||||||
playerStat.time = `${info.time} EST`;
|
playerStat.time = `${info.time} EST`;
|
||||||
playerstat.date = await client.getDateEST(info.time);
|
playerStat.date = await client.getDateEST(info.time);
|
||||||
|
|
||||||
if (playerStatIndex == -1) stats.push(playerStat);
|
if (playerStatIndex == -1) stats.push(playerStat);
|
||||||
else stats[playerStatIndex] = playerStat;
|
else stats[playerStatIndex] = playerStat;
|
||||||
|
|||||||
Reference in new issue
Block a user