3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 09:15:03 +00:00

Fix 429 string check

This commit is contained in:
Dragory 2021-08-19 00:01:29 +03:00
parent 268b5a7a93
commit 0f5072425a

View file

@ -189,7 +189,7 @@ connect().then(async () => {
const safe429MaxCount = 5; const safe429MaxCount = 5;
const safe429Counter = new DecayingCounter(safe429DecayInterval); const safe429Counter = new DecayingCounter(safe429DecayInterval);
client.on(Constants.Events.DEBUG, errorText => { client.on(Constants.Events.DEBUG, errorText => {
if (!errorText.indexOf("429")) { if (!errorText.includes("429")) {
// tslint:disable-next-line:no-console // tslint:disable-next-line:no-console
console.debug(`[DEBUG] ${errorText}`); console.debug(`[DEBUG] ${errorText}`);
return; return;