Commit graph

631 commits

Author SHA1 Message Date
Ralf Vogler
38c5402df0 exitCode should be 130 instead of 1 on SIGINT
https://unix.stackexchange.com/questions/386836/why-is-doing-an-exit-130-is-not-the-same-as-dying-of-sigint
2023-02-22 10:26:32 +01:00
Ralf Vogler
21ed2794f4 change default TIMEOUT from 20s to 60s, #62 2023-02-22 01:10:34 +01:00
Ralf Vogler
a3892eaafb update description & version in package.json 2023-02-22 00:59:22 +01:00
Ralf Vogler
9df4836221 gitignore *.env for safety :) 2023-02-22 00:52:25 +01:00
Ralf Vogler
18c27ba881 use playwright-firefox such that npm install does not download other browsers 2023-02-22 00:49:58 +01:00
Ralf Vogler
97f6735833 ncu -u updated playwright 2023-02-22 00:31:11 +01:00
Ralf Vogler
518008584f gog: actually wait for login instead of reentering the loop 2023-02-22 00:26:48 +01:00
Ralf Vogler
b0f662479d eg: exit like others if headless and no login data given 2023-02-22 00:16:19 +01:00
Ralf Vogler
66694d65e5 SIGINT handler to not notify about error on Ctrl-C 2023-02-22 00:15:03 +01:00
Ralf Vogler
c1cd2db721
Merge pull request #71 from vogler/login_timeout
add `LOGIN_TIMEOUT` with default 180s
2023-02-21 23:33:15 +01:00
Ralf Vogler
efeccf9493 use enquirer instead of prompts, use plugin for cancel after timeout 2023-02-21 23:25:18 +01:00
Ralf Vogler
8c2ac3b6d0 add LOGIN_TIMEOUT (180s) for PW, but prompts still wait forever 2023-02-21 21:21:55 +01:00
Ralf Vogler
704c4b01e1 set process.exitCode = 1 on error; don't want to rethrow 2023-02-21 21:00:26 +01:00
Ralf Vogler
1b319cacf7 docker: manually install-deps firefox: 1.12GB -> 932MB 2023-02-20 18:37:45 +01:00
Ralf Vogler
3158c5515f docker: no need for --no-install-suggests 2023-02-20 18:35:39 +01:00
Ralf Vogler
5f6d9ca830 docker: --no-install-recommends for nodejs 2023-02-20 18:32:13 +01:00
Ralf Vogler
992fe4fc8b notify-test.js 2023-02-20 15:31:30 +01:00
Ralf Vogler
957ba6d7ca
better explain 'How to set options' 2023-02-17 14:48:48 +01:00
Ralf Vogler
95598887cc readme md table spaces 2023-02-16 16:53:21 +01:00
Ralf Vogler
e2b07dc1e6 BROWSER_DIR for multiple profiles or testing, SCREENSHOTS_DIR, closes #12 2023-02-16 16:25:46 +01:00
Ralf Vogler
a90062b631 gog: Claim (.*) and don't miss -> Claim (.*), fixes #60 2023-02-15 19:33:44 +01:00
Ralf Vogler
ec2d31ed79 remove unused NopeCHA extension 2023-02-15 10:06:52 +01:00
Ralf Vogler
c65f153090 remove not needed await 2023-02-15 10:06:52 +01:00
Ralf Vogler
c058bafcf3 remove migrateDb
comment: remove this after some time since it will run fine without and people can still use this commit to adjust their data/epic-games.json and data/prime-gaming.json
2023-02-15 10:06:52 +01:00
Ralf Vogler
af34113eaf
mention pm2 for restarting 2023-02-14 18:45:23 +01:00
Ralf Vogler
acbfa9156e pg: ignore empty login error message, fixes #58 2023-02-14 10:29:21 +01:00
Ralf Vogler
f873d95a89
Update README.md 2023-02-10 17:55:55 +01:00
Ralf Vogler
3ada6bbc23
Update README.md 2023-02-09 19:49:51 +01:00
Ralf Vogler
d3e4c58c80 gog: only unsubscribe from newsletter if a game was claimed? 2023-02-09 16:53:42 +01:00
Ralf Vogler
11a28f0c73 ncu -u updated lowdb, playwright 2023-02-09 16:48:23 +01:00
Ralf Vogler
dff712d998 skip prompt for password if email is missing 2023-02-09 16:28:27 +01:00
Ralf Vogler
65a389c3d9 docker: don't pin playwright, split: system deps + firefox after npm install
`npx playwright install --with-deps firefox` fails since package.json references 1.29 but current version is 1.30:
`browserType.launchPersistentContext: Executable doesn't exist at /root/.cache/ms-playwright/firefox-1369/firefox/firefox`

Need to either pin the version there or install the browser after `npm install` which will make it take into account the package.json version.
See https://github.com/microsoft/playwright/issues/13188, https://github.com/microsoft/playwright/issues/12835

Image size:

1. 1.12GB - `npx playwright install --with-deps firefox` -> fails due to wrong browser version
2. 1.12GB - `npx playwright@1.29 install --with-deps firefox` -> pinning version works, but need to also update Dockerfile when updating package.json
3. 920MB - `npx playwright install-deps firefox` -> fails, system deps only, no browser
4. 1.12GB - 3. + `npx install firefox` after `npm install` -> works, no pinning needed, system deps stuff is cleaned up with the rest of the apt installs; breaks if system deps change...
2023-02-05 23:33:45 +01:00
Ralf Vogler
b9e9abe546 page.waitForNavigation -> page.waitForURL 2023-02-04 21:37:04 +01:00
Ralf Vogler
eb17a49628 extract prompt into util.js 2023-02-03 16:03:01 +01:00
Ralf Vogler
21a4e06209 gog: check for reCAPTCHA on login; better info for eg 2023-01-29 20:27:05 +01:00
Ralf Vogler
0393a3998b info about escaping prompts only if needed 2023-01-29 19:52:18 +01:00
Ralf Vogler
d4bf4a7af0 gog: wait for username after login, barrier before, fixes #53 2023-01-29 19:40:44 +01:00
Ralf Vogler
c5b0065a50 TypeError: String includes not contains, #53; only first line of error 2023-01-29 19:28:02 +01:00
Ralf Vogler
d7e5cc4a3a
Update README.md 2023-01-28 20:36:33 +01:00
Ralf Vogler
c9cefcb7e1
Update README.md 2023-01-28 20:35:10 +01:00
Ralf Vogler
9e0effa8c0
Update README.md 2023-01-28 20:33:21 +01:00
Ralf Vogler
0c2834eb5e
readme: add --pull=always to docker run, #51 2023-01-28 19:55:22 +01:00
Ralf Vogler
88b4dcfcac also run node gog by default, closes #52 2023-01-28 13:14:42 +01:00
Ralf Vogler
98dff72888 eg: notify: set status existed correctly, fixes #50 2023-01-28 10:26:27 +01:00
Ralf Vogler
01acfc2311 docker: pin playwright version since we install it before npm i
https://github.com/microsoft/playwright/issues/13188
2023-01-27 10:11:26 +01:00
Ralf Vogler
72a61458fc notify: escapeHtml for titles 2023-01-25 20:56:35 +01:00
Ralf Vogler
f8932af2a1
Screenshot sample Telegram notifications 2023-01-25 20:44:30 +01:00
Ralf Vogler
9355ff3e01 notify: forgot to join list, gets rid of commas 2023-01-25 19:35:18 +01:00
Ralf Vogler
0913ca3da7 pg: exit on login error 2023-01-25 19:26:34 +01:00
Ralf Vogler
af46be3a52
Merge pull request #49 from vogler/notifications/apprise
Notifications via apprise
2023-01-25 19:03:12 +01:00