diff options
Diffstat (limited to 'src/database.ts')
-rw-r--r-- | src/database.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/database.ts b/src/database.ts index 51ab5d7..1702a20 100644 --- a/src/database.ts +++ b/src/database.ts @@ -258,6 +258,18 @@ export async function fetchSlayerLeaderboards(): Promise<string[]> { return leaderboardNames } +export async function fetchHarpLeaderboards(): Promise<string[]> { + const harpSongs = await constants.fetchHarpSongs() + const leaderboardNames: string[] = [] + + for (const songId of harpSongs) { + leaderboardNames.push(`harp_${songId}_completions`) + leaderboardNames.push(`harp_${songId}_perfect_completions`) + } + + return leaderboardNames +} + /** Fetch the names of all the leaderboards that rank members */ export async function fetchAllMemberLeaderboardAttributes(): Promise<string[]> { return [ @@ -273,6 +285,9 @@ export async function fetchAllMemberLeaderboardAttributes(): Promise<string[]> { // slayer leaderboards ...await fetchSlayerLeaderboards(), + // harp leaderboards + ...await fetchHarpLeaderboards(), + 'fairy_souls', 'first_join', 'purse', |