A Discord bot for automating daily check-ins and redeeming codes for Hoyoverse and Kuro games.
- Automated daily check-ins for Hoyoverse games (Genshin Impact, Honkai: Star Rail, Zenless Zone Zero).
- Automated code redemption for Hoyoverse games.
- Notifications sent to your Discord account.
- Easy to set up and configure.
- Node.js (v20 or higher)
- Docker (optional, for containerized deployment)
- A Discord Bot Token
- MongoDB instance (for storing user data)
-
Clone the repository:
git clone https://github.com/akarindt/hoyokuro-checker.git cd hoyokuro-checker -
Install dependencies:
npm install
- Create a
.envfile in the root directory of the project. - Add the following environment variables to the
.envfile like.example.envfile
To run the bot in development mode with hot-reloading, use the following command:
npm run dev-
Build the TypeScript code:
npm run build
-
Start the bot:
npm start
The
startscript inpackage.jsonwill be configured to runnode dist/src/index.js.
npm run lint: Lint the codebase.npm run lint:fix: Fix linting errors.npm run format: Format the code using Prettier.npm run build: Compile the TypeScript code to JavaScript.
This project includes a multi-stage Dockerfile for creating an optimized production image.
-
Build the Docker image:
docker build -t hoyokuro-checker . -
Run the Docker container:
Make sure to pass your environment variables to the container.
docker run -d --env-file .env --name hoyokuro-bot hoyokuro-checker
This project is licensed under the MIT License. See the LICENSE file for details.