We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5bfb80 commit 3fa059aCopy full SHA for 3fa059a
api/index.ts
@@ -544,6 +544,8 @@ async function syncFromMee6(guild: string) {
544
}
545
const users = data.players;
546
let pageNumber = 1;
547
+ // this is needed because MEE6 doesn't give us the total amount of pages
548
+ // eslint-disable-next-line no-constant-condition
549
while (true) {
550
const res = await fetch(`https://mee6.xyz/api/plugins/levels/leaderboard/${guild}?limit=1000&page=${pageNumber}`);
551
const data = await res.json();
0 commit comments