Options
All
  • Public
  • Public/Protected
  • All
Menu
example
{
"searchStrategy": "promotion",
"runOnStartup": true,
"cronSchedule": "5 16 * * *",
"logLevel": "info",
"hcaptchaAccessibilityUrl": "https://accounts.hcaptcha.com/verify_email/96e9d77b-21eb-463d-9a21-75237fb27b6c",
"webPortalConfig": {
"baseUrl": "https://epic.exmaple.com",
},
"accounts": [
{
"email": "example@gmail.com",
"password": "abc1234",
"totp": "EMNCF83ULU3K3PXPJBSWY3DPEHPK3PXPJWY3DPEHPK3YI69R39NE"
},
],
"notifiers": [
// You may configure as many of any notifier as needed
// Here are some examples of each type
{
"type": "email",
"smtpHost": "smtp.gmail.com",
"smtpPort": 587,
"emailSenderAddress": "hello@gmail.com",
"emailSenderName": "Epic Games Captchas",
"emailRecipientAddress": "hello@gmail.com",
"secure": false,
"auth": {
"user": "hello@gmail.com",
"pass": "abc123",
},
},
{
"type": "discord",
"webhookUrl": "https://discord.com/api/webhooks/123456789123456789/A-abcdefghijklmn-abcdefghijklmnopqrst12345678-abcdefghijklmnop123456",
},
{
"type": "telegram",
"token": "644739147:AAGMPo-Jz3mKRnHRTnrPEDi7jUF1vqNOD5k",
"chatId": "-987654321",
}
],
}

Hierarchy

  • AppConfig

Index

Properties

accounts

accounts: AccountConfig[]

A list of accounts to work with

Optional baseUrl

baseUrl?: string

Deprecated, use webPortalConfig.baseUrl

deprecated

cronSchedule

cronSchedule: string = ...

Cron string of when to run the process. If using TZ=UTC, a value of 5 16 * * * will run 5 minutes after the new games are available

example

5 16 * * *

default

0 12 * * *

env

CRON_SCHEDULE

Optional email

email?: EmailConfig
deprecated

hcaptchaAccessibilityUrl

hcaptchaAccessibilityUrl: undefined | string = ...

A unique hCaptcha accessibility URL recieved in your email after signing up here: https://dashboard.hcaptcha.com/signup?type=accessibility

example

https://accounts.hcaptcha.com/verify_email/96e9d77b-21eb-463d-9a21-75237fb27b6c

env

HCAPTCHA_ACCESSIBILITY_URL

intervalTime

intervalTime: number = 60

The delay interval between runs of each account in seconds. (Only effective when multiple accounts are configured)

example

30

default

60

logLevel

logLevel: string = ...

Log level in lower case. Can be [silent, error, warn, info, debug, trace]

example

debug

default

info

env

LOG_LEVEL

notificationTimeoutHours

notificationTimeoutHours: number = 24

Number of hours to wait for a response for a notification. The notification wait is blocking, so while other accounts will still continue, the process won't exit until all captcha requests are solved. If the timeout is reached, the process will exit, and the URL in the notification will be inaccessible.

example

168

default

24

Optional notifiers

Global default notification configuration.

You may configure multiple notifiers, and they will all be triggered simultaneously.

onlyWeekly

onlyWeekly: undefined | boolean = ...

Deprecated, use searchStrategy

deprecated
env

ONLY_WEEKLY

puppeteerPurchase

puppeteerPurchase: boolean = ...

Default to purchasing games using browser automation

example

true

default

false

env

PUPPETEER_PURCHASE

runOnStartup

runOnStartup: boolean = ...

If true, the process will run on startup in addition to the scheduled time.

example

true

default

false

env

RUN_ON_STARTUP

runOnce

runOnce: boolean = ...

If true, don't schedule runs. Use with RUN_ON_STARTUP to run once and shutdown.

example

true

default

false

env

RUN_ONCE

searchStrategy

searchStrategy: string = ...

The search criteria for finding free games. Either the weekly promotion, and free promotion, or all free products.

example

all

default

promotion

env

SEARCH_STRATEGY

skipVersionCheck

skipVersionCheck: boolean = ...

Skip the call to api.github.com that checks for the latest version on launch

example

true

default

false

env

SKIP_VERSION_CHECK

testNotifiers

testNotifiers: boolean = ...

When true, the process will send test notifications with a test page to all configured accounts. Be sure to disable this after a successful test. This test will block normal operation until the test link is accessed and the Close page button is pressed. The test page can only be interacted with once.

example

true

default

false

env

TEST_NOTIFIERS

timezone

timezone: string = ...
example

America/Chicago

default

UTC

env

TZ

Optional webPortalConfig

webPortalConfig?: WebPortalConfig

Web server configurations for the remote web portal

Generated using TypeDoc