2023-03-17 20:11:13 -06:00
|
|
|
# MatrixGPT
|
|
|
|
|
2024-04-07 22:44:27 -06:00
|
|
|
_Chatbots for Matrix._
|
2023-03-18 02:30:12 -06:00
|
|
|
|
2023-03-18 02:14:45 -06:00
|
|
|
## Install
|
|
|
|
|
2024-04-07 22:44:27 -06:00
|
|
|
1. Install requirements:
|
|
|
|
```bash
|
|
|
|
sudo apt install libolm-dev gcc python3-dev
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
2. Copy `config.sample.yaml` to `config.yaml` and fill it out with your bot's Matrix auth and your API key(s).
|
2024-02-22 14:56:34 -07:00
|
|
|
|
2024-04-07 22:44:27 -06:00
|
|
|
[Pantalaimon](https://github.com/matrix-org/pantalaimon) is **required** for the bot to be able to talk in encrypted
|
|
|
|
rooms.
|
2023-03-18 02:56:06 -06:00
|
|
|
|
|
|
|
I included a sample Systemd service.
|
2023-03-18 14:17:54 -06:00
|
|
|
|
2023-03-19 16:01:36 -06:00
|
|
|
## Use
|
|
|
|
|
2024-04-07 22:44:27 -06:00
|
|
|
Invite your bot to a room.
|
|
|
|
|
|
|
|
Start a chat by prefixing your message with your trigger (for example, `!c`). The bot will create a thread when it
|
|
|
|
replies to you and you don't need to use the trigger in the thread.
|
2023-03-19 16:01:36 -06:00
|
|
|
|
|
|
|
Don't try to use two bots in the same thread.
|
|
|
|
|
2024-04-07 22:44:27 -06:00
|
|
|
You can DM a bot for a private chat. Don't use the trigger prefix in a DM.
|
|
|
|
|
2023-04-19 13:22:15 -06:00
|
|
|
The bot will move its read marker when a new message is sent in the room.
|
|
|
|
|
2023-04-08 15:13:09 -06:00
|
|
|
The bot can give helpful reactions:
|
|
|
|
|
|
|
|
- 🚫 means that the user is not allowed to chat with the bot.
|
2024-04-07 22:44:27 -06:00
|
|
|
- ❌ means the bot encountered an exception. The bot restarts when it encounters an exception which means it will not be
|
|
|
|
able to respond for a short time after this reaction.
|
2023-04-08 15:13:09 -06:00
|
|
|
- ❌ 🔐 means there was a decryption failure.
|
|
|
|
|
2024-04-07 22:44:27 -06:00
|
|
|
Use `!matrixgpt` to view the bot's help. The bot also responds to `!bots`.
|
|
|
|
|
2023-03-18 14:17:54 -06:00
|
|
|
## Encryption
|
|
|
|
|
2024-04-07 22:44:27 -06:00
|
|
|
This bot supports encryption. I recommend using [Pantalaimon](https://github.com/matrix-org/pantalaimon/) to manage
|
|
|
|
encryption keys as the built-in solution is a little janky and may be unreliable.
|