aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/hypixelApi.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/hypixelApi.js b/build/hypixelApi.js
index e4ba7ff..2100bfc 100644
--- a/build/hypixelApi.js
+++ b/build/hypixelApi.js
@@ -62,6 +62,11 @@ async function sendApiRequest({ path, key, args }) {
await new Promise((resolve) => setTimeout(resolve, 1000));
return await sendApiRequest({ path, key, args });
}
+ // bruh
+ if (fetchJsonParsed.cause === 'This endpoint is currently disabled') {
+ await new Promise((resolve) => setTimeout(resolve, 30000));
+ return await sendApiRequest({ path, key, args });
+ }
if (fetchResponse.headers['ratelimit-limit'])
// remember how many uses it has
apiKeyUsage[key] = {