Skip to content

Commit

Permalink
fit: update monday formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hellos3b committed Feb 19, 2024
1 parent 7ffb3e5 commit 2598919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fitness/src/MondayRecap.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const createRecap = (discord, db) => async () => {
.filter(notNull)
.sort((a, b) => (a.score > b.score ? -1 : 1))
.map((x) => {
return `**${x.username}**🔹${x.score.toFixed(1)} (${x.count}) ${streakToString(x.streak)}`;
return `${streakToString(x.streak) || "🔹"} ${x.username} [\`${x.score.toFixed(1)}\`]`;
});

return new EmbedBuilder({
Expand All @@ -129,7 +129,7 @@ export const createRecap = (discord, db) => async () => {
"Here's everyone's total score from the previous week!\n\n" +
"💦💦💦\n\n",
fields: [
{ name: "Top 10 🏆", value: leaderboard.slice(0, 10).join("\n") },
{ name: "Top 10", value: leaderboard.slice(0, 10).join("\n") },
...(leaderboard.length > 10
? [{ name: "Scores", value: leaderboard.slice(10).join("\n") }]
: []),
Expand Down

0 comments on commit 2598919

Please sign in to comment.