feat: remove exluded players from xp leaderboard

This commit is contained in:
Pihkaal
2025-06-27 19:09:48 +02:00
parent bfa67d4214
commit fca939fb82

View File

@@ -18,6 +18,7 @@ const askForGrinders = async (quest: QuestResult) => {
throw "Invalid admin channel provided";
const top10 = quest.participants
.filter((x) => !env.QUEST_EXCLUDE.includes(x.username))
.sort((a, b) => b.xp - a.xp)
.slice(0, 10)
.map((p, i) => `${i + 1}. ${p.username} - ${p.xp}xp`)