This Discord bot is designed to integrate with OpenAI's GPT-3 API to provide automated responses to user queries. It's built using Python and the discord.py library and comes containerized with Docker for easy deployment.
- Automated ticket creation and management via Discord commands.
- Integration with OpenAI's GPT-3 for intelligent responses.
- SQLite database for persistent storage of tickets and a knowledge base.
- Dockerized for consistent environment and easy deployment.
- Python 3.8 or higher
- Docker
- Discord Bot Token
- OpenAI API Key
git clone https://github.com/ssmanji89/aidiscordbot
cd aidiscordbot
- Install the required Python packages:
pip install -r requirements.txt
- Set your Discord Bot Token and OpenAI API Key as environment variables:
export DISCORD_BOT_TOKEN=your_discord_bot_token export OPENAI_API_KEY=your_openai_api_key
- Run the bot:
python run.py
- Build the Docker image:
docker build -t aidiscordbot .
- Run the Docker container:
docker run -e DISCORD_BOT_TOKEN=your_token -e OPENAI_API_KEY=your_key aidiscordbot
!ticket [query]
: Creates a new ticket with the given query and responds with a message.
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- The discord.py library for providing the framework for building this bot.
- OpenAI for their GPT-3 API.