diff --git a/src/execution.ts b/src/execution.ts index fec4160..8879b00 100644 --- a/src/execution.ts +++ b/src/execution.ts @@ -349,6 +349,7 @@ async function executeFromQueue(channel: string) { else errorText = ""; if (Axios.isAxiosError(e) && e.code?.match(/^5..$/) && channelQueue.tries < 3) { channelQueue.tries++; + await new Promise(r => setTimeout(r, 2000)); // pause for 2 seconds before retrying return executeFromQueue(channel); }