From 5fed201f4aebb55ad5436d34ccffebc6dd2ae799 Mon Sep 17 00:00:00 2001 From: Antabuse-123 <64858450+Antabuse-123@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:40:23 +0200 Subject: [PATCH] fix: correctly waiting on ban --- utils/updates.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/updates.js b/utils/updates.js index 789d8eb..3a43184 100644 --- a/utils/updates.js +++ b/utils/updates.js @@ -241,7 +241,10 @@ module.exports = { } catch (err) { await pause(3000) if (err?.code === 28) logger.error('Root-Me is slow, timeout was reached...') - else logger.error(err) + if (err?.code === 35) { + logger.error('SSL error, Root-Me banned us waiting for 5 minutes...') + await pause(1000 * 60 * 5 + 10000) + } else logger.error(err) } } }