feat: add optional new epic claimer mode
This commit is contained in:
parent
4ce50e2e43
commit
7a9f31df7c
6 changed files with 464 additions and 44 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue