From fca939fb822dbea0975ec3b12e0e624b89016d2f Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Fri, 27 Jun 2025 19:09:48 +0200 Subject: [PATCH] feat: remove exluded players from xp leaderboard --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 3dd9a68..cf2f633 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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`)