feat: remove exluded players from xp leaderboard
This commit is contained in:
@@ -18,6 +18,7 @@ const askForGrinders = async (quest: QuestResult) => {
|
|||||||
throw "Invalid admin channel provided";
|
throw "Invalid admin channel provided";
|
||||||
|
|
||||||
const top10 = quest.participants
|
const top10 = quest.participants
|
||||||
|
.filter((x) => !env.QUEST_EXCLUDE.includes(x.username))
|
||||||
.sort((a, b) => b.xp - a.xp)
|
.sort((a, b) => b.xp - a.xp)
|
||||||
.slice(0, 10)
|
.slice(0, 10)
|
||||||
.map((p, i) => `${i + 1}. ${p.username} - ${p.xp}xp`)
|
.map((p, i) => `${i + 1}. ${p.username} - ${p.xp}xp`)
|
||||||
|
|||||||
Reference in New Issue
Block a user