Welcome to Koi, an open-source Discord bot built with Python, designed to enhance your experience in Honkai: Star Rail while providing a variety of utility and moderation commands. Koi integrates with multiple APIs, including the Honkai: Star Rail API and the Retroachievements API, to fetch relevant game data for users.
- Honkai: Star Rail Integration: Retrieve character stats, weapon information, and more.
- Retroachievements Integration: Access achievements for retro games.
- Utility Commands: Fun commands like polls and reminders.
- Moderation Tools: Commands to manage your server effectively.
To set up Koi on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/koi-bot.git cd koi-bot
-
Set up a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies: Ensure you have Python 3.11.5 installed. I say this as this is the version I used to run the bot. Then run:
pip install -r requirements.txt
-
Set up your environment variables: The bot token should be placed in a file at the root of the repository named
token.txt
Your api information for Retroachievements API should go in a file called
api_info.txt
-
Start the bot:
python main.py
You can customize whatever you like about this bot as it is fully open source. Note: To successfully run some commands, you may have to replace every instance of my discord user id with yours.
Once Koi is up and running, invite it to your Discord server and start using the available commands. Ensure the bot has the necessary permissions to function properly. You will also have to sync the bot's command tree
Here’s a brief overview of some commands you can use with Koi:
- /hsr [UID]: Get information about a Honkai: Star Rail player from their UID
- /retro-profile [username]: Fetches user information from their username on retroachievements.
- /restart: Restarts the bot, owner only.
- /base64 [type] [text]: Converts the given text to and from base64 based on the type ["Encode" or "Decode"].
- /avatar [?user]: Retrieves a user's avatar, if none is provided, displays your own avatar.
- /invite: Sends an embed with an invite link to the discord bot.
- /sync: Syncs the bot's command tree.
- /hug [user]: Sends a hug gif and pings the mentioned user.
- /flip: Flips a coin.
- /ping: Pong!
We welcome contributions to Koi! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a Pull Request.
Please ensure that your code adheres to the existing style and includes appropriate tests where applicable.
Koi is licensed under the MIT License. See the LICENSE file for more details.
For any questions or issues, feel free to open an issue on the GitHub repository or reach out via Discord:
- Discord:
@lluunnaa.
Including the period.
Thank you for using Koi! We hope you enjoy its features and capabilities.