Skip to content

Commit

Permalink
Fixed waiting after the all accounts have been processed
Browse files Browse the repository at this point in the history
  • Loading branch information
Revadike committed Apr 26, 2020
1 parent 8033179 commit 63730b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ To which I will say, why not? Most of these games are actually outstanding games
No, these are only usable by using the config.

## Changelog
### V1.2.3
* Small bugfix

### V1.2.2
* Added looping feature a.k.a. run forever* (Closes #2)
* Added multi-account support*
Expand Down
12 changes: 6 additions & 6 deletions gimme_free_epic_shit.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ let { accounts, delay, loop } = require(`${__dirname}/config.json`);

await client.logout();
console.log(`Logged ${client.account.name} out of Epic Games`);
}

if (loop) {
console.log(`Waiting ${delay} minutes`);
await sleep(delay);
} else {
process.exit(0);
}
if (loop) {
console.log(`Waiting ${delay} minutes`);
await sleep(delay);
} else {
process.exit(0);
}
} while (loop);
})().catch(err => {
Expand Down

0 comments on commit 63730b9

Please sign in to comment.