This bot is made only for educational purposes! Only you are responsible for any potential damage done to your account!
The bot is made to automate daily check-in webevent:
https://webstatic-sea.mihoyo.com/ys/event/signin-sea/index.html?act_id=e202102251931481
-
git clone https://github.com/zeokku/genshin-daily-check-in-bot.git
-
cd genshin-daily-check-in-bot
-
npm i
oryarn
-
Open web event in a browser
-
Obtain required cookies:
- Open browser console and execute this code:
cookies = Object.fromEntries( document.cookie.split(/;\s*/).map((c) => c.split("=")) ); if(cookies['account_id']) { copy(JSON.stringify(cookies, ['account_id', 'cookie_token'])) console.log('Copied into clipboard! Now paste it into cookies.json') } else { console.error("You are not logged in!"); }
- Copy the string into cookies.json file next to the index.js
-
Run
node ./
or./run
-
Create a shortcut for
run.bat
and place it to autorun (Win+R -> shell:startup), so the program will run each time you run the machine