The lab

Gacha Daily Check-In

Claims the daily login rewards for four games every evening, so nobody has to open each game's site.

Python, Windows Task Scheduler

Tech stack

  • Python
  • requests
  • python-dotenv
  • Windows Task Scheduler

What it does

  • Claims daily rewards for Genshin Impact, Honkai: Star Rail and Zenless Zone Zero through HoYoLAB, and for Arknights: Endfield
  • For Endfield, it gets fresh login credentials each run, finds the in-game character, signs each request the way the game expects, and lists the items received
  • A reward that was already claimed today counts as a success

How it works

  • Windows Task Scheduler runs it at 21:00 every day. A GitHub Actions schedule was tried first, but its runs were unreliable.
  • Each request times out after 15 seconds and is retried once, and missing or malformed responses are handled without crashing.
  • If any game fails, it exits with an error, so Task Scheduler's last run result shows the problem.
  • Secrets stay in a gitignored .env file and are kept out of the timestamped log.