Code Monkey home page Code Monkey logo

cocogoat-assistant's Introduction

Cocogoat Assistant 🥥 🌴

Hi! You can just call me Cocogoat. I'm an assistant with tools and scripts to assist in the Genshin Impact grind. As per our contract.˚ ༘♡ ⋆。˚

Current Abilities:

  • I can automatically check-in to the Hoyolab website and collect rewards for you at a random time each day. This can either be ran in the background locally or by using a GitHub workflow.

Setup:

Option 1 (more complex, challenging, but more automated):
1. Fork the repo.
2. You will need to see the data of the post request and save the cookies that are sent when you click check-in on the sign in page: https://act.hoyolab.com/ys/event/signin-sea-v3/index.html?act_id=e202102251931481

- How can I do that?
In Firefox, go to the checkin page linked above. Make sure you are logged in. Do not click the check-in button yet!
Hit Ctrl + Shift + E to open the Network tab.
Watch the tab, you should be able to see some requests already. Click the check-in button and watch for a POST request to appear. There's multiple, so you might have to try different POST ones to get your cookies :) Find the cookies tab. This will have all of the values you need.
Chrome: same as Firefox but use Ctrl + Shift + I and select the Network tab.

3. Save these values:
LTUID
LTOKEN
ACCOUNTID
ACCOUNT_ID_V2
ACCOUNT_MID_V2
COOKIE_TOKEN_V2

4. Add these as stored secrets to the newly forked repo. Make sure to follow the secret names exactly (all caps) and for the value, post the plain text without any quotations.

5. Set the GitHub workflow to run randomly every 24 hours.

Option 2 (easier):
Clone or download the repo locally and run main.py manually. Before you do this, update config.json with the browser that you normally use to login to Hoyolab and set "use_workflow" to "false". The current browsers supported are: Chrome, Firefox, Opera, Edge, Chromium, Brave, and Vivaldi. If you use something other than that, I would recommend using Option 1.

What I Want to Learn:

  • Fishing in Teyvat
  • Cooking delicious food to keep up team morale ( ˘▽˘)っ🍜
  • Calculate resin regeneration
  • Tracking weapon and character ascension materials
  • Keep track of wishes and calculate your current pity

Feedback:

Please feel free to open an issue if you think there is an area I can improve upon. I remember reading in an ancient text that "Only when days be darker than the darkest night, may a qilin be compelled to fight." That's a massive exaggeration... But should the time come for battle, and should you need me, then I will give it every ounce of my strength. 💪(=⌒‿‿⌒=)

cocogoat-assistant's People

Contributors

montgomerysamantha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.