1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 20:30: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 ca3f926cb8
commit a86efd78a5

View File

@ -152,7 +152,8 @@ export async function requestServerData(client:TClient, server:IServerExt):Promi
}
await new Promise(resolve=>setTimeout(resolve, delay));
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;
}