1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10:58 -05:00

Improve the code comment for API ratelimit that is set by GIANTS

This commit is contained in:
toast-ts 2024-03-16 20:53:39 +11:00
parent 7fdd5ee63e
commit 389c66c26b

View File

@ -152,7 +152,8 @@ export async function requestServerData(client:TClient, server:IServerExt):Promi
} }
await new Promise(resolve=>setTimeout(resolve, delay)); await new Promise(resolve=>setTimeout(resolve, delay));
delay *= 2; delay *= 2;
console.log('Request delayed by %d for %s', delay, server.serverName); Logger.console('log', loggingPrefix, `Request delayed by ${delay} for ${server.serverName}`);
// Workaround for the API ratelimit (seen by panel responding with HTTP 400 apparently...)
} }
return null; return null;
} }