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_v2
andltuid_v2
- Google Chrome: Open Developer Tools (F12 or Ctrl+shift+I)
- Go to
Application
tab. - Go to
Cookies
(double click) - Click
"https://act.hoyolab.com"
- From the list get
ltoken_v2
andltuid_v2
(double click + copy-paste) and replace it in the code:"ltoken_v2=v2_XXXXX; ltuid_v2=XXXXX;"
- (Optional) Setup Discord Notification
- Set
discord_notify
totrue
- Set
myDiscordID
to your Discord Id (or leave it empty) - Set
discordWebhook
url (Discord Server Setting > Integrations > Webhooks, Create New One and Copy Webhook URL)
- Set
- For Auto Run Daily: Go to
Triggers
menu on the left side with clock icon - Click
Add Trigger
at 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 midnight
you can use this example too - Failure notification settings:
Notify me daily
just 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.