From 70d8bcf65577938f95487a05fb6b9a3a75a8d5f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emrik=20=C3=96stling?= Date: Mon, 4 Dec 2023 14:16:03 +0100 Subject: [PATCH] Run on last 40 to not be too close to rate-limit --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index e4f1f08..e09b00c 100644 --- a/index.js +++ b/index.js @@ -30,9 +30,9 @@ function checkGame() { //THIS IS BAD, and definitely not scalable. if (lastLength < codes.length) { - if ((lastLength + 50) < codes.length) { - console.log("Only runs on the last 50 games") - lastLength = codes.length - 50 + if ((lastLength + 40) < codes.length) { + console.log("Only runs on the last 40 games") + lastLength = codes.length - 40 } let asfcommand = "!addlicense asf " for (lastLength; lastLength < codes.length; lastLength++) {