This project is an AI-powered chat bot for Discord, utilizing various AI models and pipelines to provide intelligent responses and conversational capabilities.
-
Clone the repository:
git clone https://github.com/yourusername/ai-chat-bot.git cd ai-chat-bot -
Create and activate a virtual environment:
python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Set up environment variables: Create a
.envfile in the root directory and add the following variables:DISCORD_TOKEN=your_discord_token AZURE_OPENAI_ENDPOINT=your_azure_openai_endpoint AZURE_OPENAI_API_KEY=your_azure_openai_api_key GEMINI_API_KEY=your_gemini_api_key
-
Run the bot:
python src/bot.py
-
The bot will log in to Discord and start listening for messages in the specified channels.
- Discord Token: Set your Discord bot token in the
.envfile. - Azure OpenAI: Configure your Azure OpenAI endpoint and API key in the
.envfile. - Gemini API: Set your Gemini API key in the
.envfile.
The project dependencies are listed in the requirements.txt file:
discord.py==2.4.0
python-dotenv==1.0.1
google-generativeai==0.8.3
openai==1.57.0
haystack-ai==2.8.0
google-ai-haystack==3.0.2
datasets==3.1.0
mongodb-atlas-haystack