Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infraspecdev/igpt-bot
https://github.com/infraspecdev/igpt-bot
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/infraspecdev/igpt-bot
- Owner: infraspecdev
- Created: 2024-05-28T10:47:35.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-11T06:21:02.000Z (6 months ago)
- Last Synced: 2024-11-08T09:28:31.476Z (about 2 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
igpt-bot is a ChatGPT bot for discord. It makes ChatGPT available over Discord DMs.
## Prerequisites
1. Python 3
2. Conda (the instructions assume you use conda, but venv works too. activate env and download deps accordingly)## Prep
1. Generate Open AI API key.
2. 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.## Running the bot
1. Clone the repository.
2. Ensure you have python 3 and conda installed on your machine.
3. Modify the keys in the `env-sample`.
4. Rename `env-sample` -> `.env`
5. Create the conda virtual environment for the bot from the environment configuration - `conda env create -f environment.yml`
6. Activate the environment with `conda activate discord-bot`. All dependencies should be installed only within the virtual environment.
7. Run `python main.py` to start the bot.## Limitations
1. The bot responds only to DMs. Cannot respond in chat rooms.
2. Conversation history is managed in memory. Upon restarting, conversation history will be lost.