1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Added default contributors

This commit is contained in:
Edward Badel 2021-06-27 22:56:55 -04:00
parent 04f12a22e0
commit 00bed92452

View File

@ -134,6 +134,12 @@ async function downloadAllPrs() {
}
async function tryToUpdateContributors() {
if (personalAccessToken === "PUT TOKEN HERE") {
console.log("A github token was not provided, writing default contributors.json");
await writeJSONFile([], []);
return;
}
if (!(await shouldDownloadPRs())) {
console.log("Not updating contributors to prevent github API from rate-limiting this computer");
console.log("If you wish to force a contributors update, use contributors.build.force");