Skip to content

Commit

Permalink
Merge pull request #3 from pollen00/master
Browse files Browse the repository at this point in the history
Fixed mod update checker result slicing
  • Loading branch information
mikhailmikhalchuk authored Jan 26, 2022
2 parents b4f581d + 8d7df50 commit 80e590a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ async function modUpdateCheck() {
console.log("No mod updates found.");
}
else if (results[results.length - 1].includes("has updates available")) {
bot.users.resolve(config.userToNotify)?.send("Factorio mod updates were found.\n" + results.slice(2, results.length - 1).join("\n"))
bot.users.resolve(config.userToNotify)?.send("Factorio mod updates were found.\n" + results.slice(2, results.length).join("\n"))
console.log("Mod updates found.");
console.log(results.slice(2, results.length - 1));
console.log(results.slice(2, results.length));
}
});
}
Expand Down

0 comments on commit 80e590a

Please sign in to comment.