Scorekeeper command output formatting changes.
This commit is contained in:
parent
5c3ee39fa6
commit
f7a9ecee86
@ -430,16 +430,19 @@ export const commands = [
|
|||||||
.setThumbnail(targetUser.displayAvatarURL())
|
.setThumbnail(targetUser.displayAvatarURL())
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: 'Total Score', value: `**${scoreData.totalScore.toFixed(2)}**`, inline: false },
|
{ name: 'Total Score', value: `**${scoreData.totalScore.toFixed(2)}**`, inline: false },
|
||||||
{ name: 'Commendations', value: `**${scoreData.commendations}** x ${commendationValue}`, inline: false },
|
{ name: 'Commendations', value: `**${scoreData.commendations}**`, inline: false },
|
||||||
{ name: 'Citations', value: `**${scoreData.citations}** x ${citationValue}`, inline: false },
|
{ name: 'Citations', value: `**${scoreData.citations}**`, inline: false },
|
||||||
{ name: 'Input Score', value: `**${scoreData.input}**`, inline: true },
|
{ 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({
|
.addFields({
|
||||||
name: 'Formula',
|
name: 'Formula',
|
||||||
value:
|
value:
|
||||||
`M = 1 + **${scoreData.commendations}** * ${commendationValue} - **${scoreData.citations}** * ${citationValue}\n` +
|
`CV = ${commendationValue}\n` +
|
||||||
`M × **${scoreData.input}** / (**${scoreData.output}** + ${baseOutput}) = **${scoreData.totalScore.toFixed(2)}**`,
|
`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
|
inline: false
|
||||||
})
|
})
|
||||||
.setFooter({ text: 'Last decay: ' + new Date(scoreData.lastDecay).toLocaleDateString() })
|
.setFooter({ text: 'Last decay: ' + new Date(scoreData.lastDecay).toLocaleDateString() })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user