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:
parent
04f12a22e0
commit
00bed92452
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user