From a862da7e3628f905cd5c74ec0750f1d549010e0b Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 5 Nov 2023 13:56:44 -0800 Subject: [PATCH] fix/totalSessionTime + longestSessionTime player stats --- commands/player-stats.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/player-stats.js b/commands/player-stats.js index a44695a..83c75e7 100644 --- a/commands/player-stats.js +++ b/commands/player-stats.js @@ -135,12 +135,12 @@ module.exports = { if ((category == 'shotsLanded' || category == 'timesShot') && !client.exists(query.shotsLanded)) query = insertPVPstats(query); - if (category == 'total_time_played') { + if (category == 'totalSessionTime') { statsEmbed.addFields( { name: 'Total Time Played', value: client.secondsToDhms(query.totalSessionTime), inline: true }, { name: 'Last Session Time', value: client.secondsToDhms(query.lastSessionTime), inline: true } ); - } else if (category == 'longest_time_played') { + } else if (category == 'longestSessionTime') { statsEmbed.addFields( { name: 'Longest Game Session', value: client.secondsToDhms(query.longestSessionTime), inline: true }, { name: 'Last Session Time', value: client.secondsToDhms(query.lastSessionTime), inline: true } diff --git a/package.json b/package.json index 5b8b1fc..f30a660 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "12.2.9", + "version": "12.2.10", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": {