change/combat rating graph

This commit is contained in:
SowinskiBraeden committed 2023-11-04 20:04:50 -07:00
1 parent 19f56f890c
commit f8a7ea824f
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -207,12 +207,14 @@ module.exports = {
statsEmbed.addFields({ name: 'Combat Rating', value: `${query.combatRating}`, inline: true }); 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 = { const chart = {
type: 'line', type: 'line',
data: { data: {
labels: new Array(query.combatRatingHistory), labels: new Array(query.combatRatingHistory),
datasets: [{ datasets: [{
data: query.combatRating, data: query.combatRatingHistory,
label: 'Combat Rating Over Time', label: 'Combat Rating Over Time',
}], }],
}, },
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayzr-bot", "name": "dayzr-bot",
"version": "12.2.4", "version": "12.2.5",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {