Simple HoYoLAB Auto Check-In. Free, One Time Set-up.
- Open Google Script: Google Apps Script
- Create a New Project
- Replace Everything with
autoDailyCheckIn.js - Set your
ltoken_v2andltuid_v2- Google Chrome: Open Developer Tools (F12 or Ctrl+shift+I)
- Go to
Applicationtab. - Go to
Cookies(double click) - Click
"https://act.hoyolab.com" - From the list get
ltoken_v2andltuid_v2(double click + copy-paste) and replace it in the code:"ltoken_v2=v2_XXXXX; ltuid_v2=XXXXX;"
- (Optional) Setup Discord Notification
- Set
discord_notifytotrue - Set
myDiscordIDto your Discord Id (or leave it empty) - Set
discordWebhookurl (Discord Server Setting > Integrations > Webhooks, Create New One and Copy Webhook URL)
- Set
- For Auto Run Daily: Go to
Triggersmenu on the left side with clock icon - Click
Add Triggerat the bottom right corner - Use this details:
- Choose which function to run:
main - Which runs at deployment:
Head - Select event source:
time-driven - Select type of time based trigger:
Day-timer - Select time of day: Choose whenever server day reset or whenever you want, example server reset at 11pm UTC+7, so set it to
11pm to midnightyou can use this example too - Failure notification settings:
Notify me dailyjust in case it doesn't work anymore you will get notified.
- Choose which function to run:
Q: Is it bannable? A: No, I've been using this for years.
Q: It doesn't work anymore?
A: If you changed your password, ltoken will changed too, so get a new one.