This is a Discord bot that uses Chat GPT's technology to generate responses to messages in a Discord server(using AI).
- Clone this repository
- Create a Discord bot and invite it to your server
- Grab the bot's token and replace it in your own '.env' file (template provided)
- Grab the Chat GPT API key and replace it in your own '.env' file (template provided)
- Run 'pip install -r "path"/requirements.txt' to install dependencies
- Run 'python3 "path"/run.py' to start the bot
- Create a channel with the following names: {'gpt-questions', 'chatgpt', 'gpt-bot'}
- Type '/ai message' or '/bot message' or '/chatgpt message' in the current channel and wait for the response
- Enjoy!
System sequence diagram:
Sequence diagram of the bot:
Bot setup:
- Python 3.10.0
- discord.py 2.1.0
- python-dotenv 0.21.0
- requests 2.25.1