Attention! This project was created by thrown together hastily, I do not exclude that there are places for improvement in my code, so do not throw 🍅 at me... 🙃
A little bit about functionality:
- 🤖 Support for private messages with the user
- 👥 Support for working with multiple users
- 📝 Short-term memory ( 20 messages )
- 🧹 Forced memory cleanup
- 💸 Free api for working with chatgpt
- 🔁 It is possible to change the provider by the user
- 🖲️Using PostgreSQL as storage
- There could be your suggestion here...
In order to launch this bot, you need to:
- Have a created account on the matrix server
- Dedicated server on Ubuntu/Debian/Arch etc..
Okay, let's move on to the installation:
- Clone this repo :
git clone https://github.com/shizamuru-dev/MatrixGPT.git
- Go to the downloaded directory
cd MatrixGPT
- Now you need to install all the dependencies:
pip install -r requirements.txt
- Go to
Config
and editcfg.py
file (To be precise:botID
,botPassword
,homeServer
)
That's all, it remains only to launch the bot: python3 main.py
After starting, you need to confirm the session to do this, follow the instructions: *Сlick*