Skip to content

Commit c2ed997

Browse files
authored
feat: add docs, add env vars, add country code, deprecate twitch, linting (#3198)
1 parent 4eb678a commit c2ed997

File tree

190 files changed

+724
-1546
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+724
-1546
lines changed

Diff for: .eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "./node_modules/gts/",
33
"rules": {
4+
"@typescript-eslint/no-explicit-any": "off",
45
"prettier/prettier": [
56
"error",
67
{

Diff for: docs/reference/application.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@
99
| `IN_STOCK_WAIT_TIME` | Time to wait between requests to the same link if it has that card in stock. In seconds, default: `0` |
1010
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels). Debugging related, default: `info` |
1111
| `LOW_BANDWIDTH` | Blocks images/fonts to reduce traffic. Disables ad blocker, default: `false` |
12-
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found. Default: `true` |
13-
| `PAGE_BACKOFF_MIN` | Minimum backoff time between retrying requests for the same store when a forbidden response is received. Default: `10000` |
14-
| `PAGE_BACKOFF_MAX` | Maximum backoff time between retrying requests for the same store when a forbidden response is received. Default: `3600000` |
12+
| `NVIDIA_ADD_TO_CART_ATTEMPTS` | Maximum number of attempts add an item to card in the Nvidia storefront, default: `10` |
13+
| `NVIDIA_SESSION_TTL` | Maximum session length on the Nvidia storefront in ms, default: `60000` |
14+
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found, default: `true` |
15+
| `PAGE_BACKOFF_MIN` | Minimum backoff time between retrying requests for the same store when a forbidden response is received, default: `10000` |
16+
| `PAGE_BACKOFF_MAX` | Maximum backoff time between retrying requests for the same store when a forbidden response is received, default: `3600000` |
1517
| `PAGE_SLEEP_MIN` | Minimum sleep time between queries of the same product page. In milliseconds, default: `5000` |
1618
| `PAGE_SLEEP_MAX` | Maximum sleep time between queries of the same product page. In milliseconds, default: `10000` |
1719
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds. `0` for infinite, default: `30000` |
18-
| `PROXY_PROTOCOL` | Protocol of proxy server, such as `socks5`. Default: `http` |
20+
| `PROXY_PROTOCOL` | Protocol of proxy server, such as `socks5`, default: `http` |
1921
| `PROXY_ADDRESS` | IP Address or fqdn of proxy server |
20-
| `PROXY_PORT` | TCP Port number on which the proxy is listening for connections. Default: `80` |
22+
| `PROXY_PORT` | TCP Port number on which the proxy is listening for connections, default: `80` |
2123
| `RESTART_TIME` | Restarts chrome after defined milliseconds. `0` for never, default: `0` |
22-
| `SCREENSHOT` | Capture screenshot of page if a card is found. Default: `true` |
23-
| `SCREENSHOT_DIR` | The directory for saving the screenshots. Default: `screenshots` |
24+
| `SCREENSHOT` | Capture screenshot of page if a card is found, default: `true` |
25+
| `SCREENSHOT_DIR` | The directory for saving the screenshots, default: `screenshots` |
26+
| `USER_AGENT` | Custom user agent used for requests |
2427
| `WEB_PORT` | Starts a webserver to be able to control the bot while it is running. Setting this value starts this service. |
2528

2629
???+ info

0 commit comments

Comments
 (0)