Skip to content

Commit

Permalink
Run on last 40 to not be too close to rate-limit
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin authored Dec 4, 2023
1 parent b9db0d4 commit 70d8bcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 70d8bcf

Please sign in to comment.