feat: add optional new epic claimer mode
All checks were successful
build-and-push / lint (push) Successful in 5s
build-and-push / sonar (push) Successful in 12s
build-and-push / docker (push) Successful in 1m13s

This commit is contained in:
nocci 2025-12-31 12:25:07 +00:00
parent 4ce50e2e43
commit 7a9f31df7c
6 changed files with 464 additions and 44 deletions

View file

@ -13,6 +13,12 @@ const URL_LOGIN = 'https://www.epicgames.com/id/login?lang=en-US&noHostRedirect=
console.log(datetime(), 'started checking epic-games');
if (cfg.eg_mode === 'new') {
const { claimEpicGamesNew } = await import('./epic-claimer-new.js');
await claimEpicGamesNew();
process.exit(0);
}
const db = await jsonDb('epic-games.json', {});
if (cfg.time) console.time('startup');