This is a Discord bot that uses the Gemini AI API to answer questions and interact with users. The bot allows direct queries to the AI through customizable commands, including aliases and private response options.
- Integration with the Gemini AI API
!gemini (prompt)
to start.
git clone https://github.com/your-username/your-repository.git
cd your-repository
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
pip install -r requirements.txt
Create a .env
file in the root of the project and add:
DISCORD_TOKEN=your_discord_token
GEMINI_KEY=your_gemini_api_key
python main.py
In Discord, use:
!gemini What is the meaning of life?
The bot will respond directly in the chat.
- Fork the repository
- Create a branch (
feature/my-feature
) - Make your changes and commit (
git commit -m "My improvement"
) - Submit a Pull Request