Files
hoyolab-auto-daily/.gitignore
Ekachai Suriyakriengkri 05b6f68932 Add Telegram notifications, harden workflows, fix request handling
Features
- Telegram notifier via TELEGRAM_TOKEN / TELEGRAM_CHAT_ID, sent alongside
  the existing Discord webhook (either, both, or neither)
- emoji status prefixes in notifications for faster scanning

Fixes
- wrap each game's fetch/json in try/catch so a network error or non-JSON
  response logs and continues instead of aborting the whole run
- correct Content-Type (application/json) and sec-fetch-mode headers
- fix quote-stripping regex (missing global flag)
- throw the friendly COOKIE/GAMES errors before use instead of a raw TypeError
- keep send-confirmation lines out of the notification body

Hardening
- pin liskin/gh-workflow-keepalive to a commit SHA
- add least-privilege permissions to both workflows

Chores
- add .gitignore (node_modules, .env, logs) to prevent committing local cookies

Docs
- document Telegram setup in README
2026-06-30 14:42:46 +07:00

5 lines
35 B
Plaintext

node_modules/
.env
*.log
.DS_Store