diff --git a/commands/player-stats.js b/commands/player-stats.js index c7a5bdf..74630c2 100644 --- a/commands/player-stats.js +++ b/commands/player-stats.js @@ -207,12 +207,14 @@ module.exports = { statsEmbed.addFields({ name: 'Combat Rating', value: `${query.combatRating}`, inline: true }); + if (query.combatRatingHistory.length == 1) query.combatRatingHistory.push(query.combatRating) // Make array 2 long for a straight line in the graph + const chart = { type: 'line', data: { labels: new Array(query.combatRatingHistory), datasets: [{ - data: query.combatRating, + data: query.combatRatingHistory, label: 'Combat Rating Over Time', }], }, diff --git a/package.json b/package.json index 39d600e..75c1783 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "12.2.4", + "version": "12.2.5", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": {