This is a simple Bot written in Python to bring ChatGPT directly into Python.
## Disclaimer
This bot is not suited for the use in big channels or by many users. Your OpenAI API Key *will* get rate limited, if many requests are made to the bot in a short period of time. See this bot primarly for something for personal use or in small groups with your friends or family. I'll maybe add the option to whitelist specific users who are allowed to use the bot via a config or similar in the future.
**Attention:** If you push your changes to this repository DO NOT push your login credentials or API Keys. If you accidentally do, change them immediately!
2. Follow the README.md of the [libolm repository](https://gitlab.matrix.org/matrix-org/olm) to install libolm 3 or newer. You will need this for the bot to work in addition to the requirements.txt!
5. Install requirements from requirements.txt using:
```bash
pip3 install -r requirements.txt
```
6. Create a bot account on your Matrix server
7. Logout of your Matrix client with the bot account (if you haven't created it via a Synapse command or the AdminAPI), so the session will be cancelled
8. Open main.py with a text editor (for e.g. nano, vim or neovim) and edit: