A powerful and conversational Discord chatbot built using Python and the Groq API. This bot can answer your questions, chat naturally, and assist in a wide range of topics — all in your Discord server.
- 🔍 Intelligent Q&A
- 💬 Natural conversation flow
- ⚙️ Built using Python & Discord.py
- 🧠 Powered by the Groq LLM API
- 🛡️ Easily extendable and customizable
- Language: Python 3.10+
- API: Groq API
- Bot Framework: discord.py
git clone https://github.com/yourusername/groq-discord-bot.git
cd groq-discord-botWe recommend using a virtual environment.
pip install -r requirements.txtCreate a .env file in the root directory and add your keys:
DISCORD_TOKEN=your_discord_bot_token
GROQ_API_KEY=your_groq_api_keypython bot.pyUser: @Chatty What's the capital of Japan?
Bot: The capital of Japan is Tokyo.
User: @Chatty Tell me a joke!
Bot: Why don't scientists trust atoms? Because they make up everything!
groq-discord-bot/
│
├── bot.py # Main bot logic
├── groq_client.py # Handles Groq API calls
├── .env # Environment variables
├── requirements.txt # Python dependencies
└── README.md # Project info
- This bot supports both prefix-based and mention-based command triggers.
- All responses are generated through Groq’s powerful LLM, offering accurate and fast responses.
Contributions are welcome! Please open an issue or PR to improve features or documentation.
MIT License. See LICENSE file for more details.
- Groq
- discord.py
- Open-source inspiration from various community projects.
