Skip to content

Commit

Permalink
fix: sort the leaderboard you dingdong
Browse files Browse the repository at this point in the history
  • Loading branch information
rayhanadev committed Feb 16, 2025
1 parent 898a78c commit 28e9a1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/hack-night.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export function cleanupHackNightImagesThread(client: Client) {
await channel.send({
content: `Our top contributors this week are:
${Array.from(contributors)
.sort((a, b) => b[1] - a[1])
.slice(0, 5)
.map(([id, count], index) => `\n#${index + 1}: <@${id}> - ${count}`)
.join("")
Expand Down

0 comments on commit 28e9a1f

Please sign in to comment.