From f7a9ecee8605b73acdef7456979f8d76c0103e9f Mon Sep 17 00:00:00 2001 From: jrmyr Date: Wed, 30 Apr 2025 02:30:16 +0000 Subject: [PATCH] Scorekeeper command output formatting changes. --- _opt/scorekeeper.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/_opt/scorekeeper.js b/_opt/scorekeeper.js index 7ce7e2f..6508d84 100644 --- a/_opt/scorekeeper.js +++ b/_opt/scorekeeper.js @@ -430,16 +430,19 @@ export const commands = [ .setThumbnail(targetUser.displayAvatarURL()) .addFields( { name: 'Total Score', value: `**${scoreData.totalScore.toFixed(2)}**`, inline: false }, - { name: 'Commendations', value: `**${scoreData.commendations}** x ${commendationValue}`, inline: false }, - { name: 'Citations', value: `**${scoreData.citations}** x ${citationValue}`, inline: false }, + { name: 'Commendations', value: `**${scoreData.commendations}**`, inline: false }, + { name: 'Citations', value: `**${scoreData.citations}**`, inline: false }, { name: 'Input Score', value: `**${scoreData.input}**`, inline: true }, - { name: 'Output Score', value: `**${scoreData.output}** + ${baseOutput}`, inline: true } + { name: 'Output Score', value: `**${scoreData.output}**`, inline: true } ) .addFields({ name: 'Formula', value: - `M = 1 + **${scoreData.commendations}** * ${commendationValue} - **${scoreData.citations}** * ${citationValue}\n` + - `M × **${scoreData.input}** / (**${scoreData.output}** + ${baseOutput}) = **${scoreData.totalScore.toFixed(2)}**`, + `CV = ${commendationValue}\n` + + `CiV = ${citationValue}\n` + + `BO = ${baseOutput}\n` + + `M = 1 + **${scoreData.commendations}** × CV - **${scoreData.citations}** × CiV\n` + + `M × **${scoreData.input}** / (**${scoreData.output}** + BO) = **${scoreData.totalScore.toFixed(2)}**`, inline: false }) .setFooter({ text: 'Last decay: ' + new Date(scoreData.lastDecay).toLocaleDateString() })