This project serves as a web server for enabling users to set up Geetest captcha verification for the Genshin Discord Bot. Therefore, this project tightly integrates with the database operations of the Genshin Discord Bot. If you need to develop and test independently, please remove the code related to the database.
- Genshin Discord Bot:
- Triggers the Hoyolab verification request and receives
gt
andchallenge
from Hoyolab. - Generates a link for users to connect to this web server.
- Triggers the Hoyolab verification request and receives
- This Program:
- Receives user
discord_id
,gt
, andchallenge
through URL GET paths. - Generates a webpage and returns it to the user, with JavaScript initiating the captcha verification.
- After the user unlocks the captcha verification, the Geetest server returns
challenge
,validate
, andseccode
. - Sends a POST request to this program with the data from step 2.3. This program receives and saves it to the database.
- Receives user