igpt-bot is a ChatGPT bot for discord. It makes ChatGPT available over Discord DMs.
- Python 3
- Conda (the instructions assume you use conda, but venv works too. activate env and download deps accordingly)
- Generate Open AI API key.
- Create Discord bot as documented in the
Step 2 - Create a simple discord bot
section here[https://www.infraspec.dev/blog/building-a-discord-gpt-bot/] and copy bot token.
- Clone the repository.
- Ensure you have python 3 and conda installed on your machine.
- Modify the keys in the
env-sample
. - Rename
env-sample
->.env
- Create the conda virtual environment for the bot from the environment configuration -
conda env create -f environment.yml
- Activate the environment with
conda activate discord-bot
. All dependencies should be installed only within the virtual environment. - Run
python main.py
to start the bot.
- The bot responds only to DMs. Cannot respond in chat rooms.
- Conversation history is managed in memory. Upon restarting, conversation history will be lost.