Collei claims daily check-in rewards and new codes for you. |
Forking the repository has the benefit of being able to apply fixed and updates to your version easily, with the downside of having to have the repository publicly visible in your GitHub profile due to GitHub limitations.
If you wish to keep the repository private, you'll have to generate it from the template, with the downside of having to apply patches manually. Log in at hoyolab.com, open the developer console by pressing
F12
on your keyboard and navigate to the console tab. Finally, paste the following in the console to copy your cookies to your clipboard copy(document.cookie)
. IMPORTANT: Never share your cookies with anyone! Create a new secret called
GENSHIN_COOKIES
or STARRAIL_COOKIES
respectively and
paste your cookies. If both your Star Rail and Genshin accounts are connected to the same Hoyoverse account, paste
the same cookie in each. If you don't have an account for one of the games, skip setting the cookie secret. Collei will only try to claim the rewards for games you provide her with and may fail otherwise. And you're set! From now on Collei will claim any new codes and redeem the daily check-in rewards at Hoyolab for you every 6 hours! You can also run this repository locally if you do not wish to rely on GitHub.
$ git clone https://github.com/c4em/collei
$ cd collei
$ pip install -r requirements.txt
$ GENSHIN_COOKIES="your cookies" STARRAIL_COOKIES="your cookies" ./collei
If you wish to automate this process, read up on cron jobs for your distribution.
Help! My Collei broke!This section goes over some common reasons why Collei might break. If you reset your password, you'll have to set your cookies again because they'll be reset. Simply delete the existing secrets in the repository and follow the step to set your cookies again. Collei will fail if you provide her with cookies to a game you don't play. Simply remove the cookie for the given game and she'll resume work like usual. It could be that the script broke due to an oopsie on my side, in which case I'm sorry. Have a look at the original repository to see if there have been any changes.
If there are, the easiest way to fix the issue, if you're not a developer, would be to set up collei again from scratch.
Why? You might ask. I know it sucks but GitHub doesn't allow you to create private forks, so you would have to have it publicly visible on your profile, which would turn away most people. So instead the repository is a public template, which you can set to be private after copying it. If you do not care that you have to keep the repository public, you can use the fork option in the top right instead.
If there are not, you can contact me about the issue by opening an issue in the GitHub repository or sending me a message directly somewhere. I'll be glad to help. My contact information is visible on my GitHub profile. This project is licensed under GPLv3.