2023-06-09 02:19:06 +05:30
|
|
|
# MatrixAI Bot
|
|
|
|
|
2023-06-09 02:21:02 +05:30
|
|
|
![]( https://healthchecks.projectsegfau.lt/badge/1de0ebc9-6c86-48b5-9992-7b44bcc4b483/4fokvU0o.svg )
|
|
|
|
|
2023-06-09 02:19:06 +05:30
|
|
|
A Matrix Bot for chatting with AI and generating pictures
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
1. Invite `@ai:projectsegfau.lt` to your room
|
|
|
|
2. Chat with AI by doing `!ask Who are you ?`
|
|
|
|
3. Generate a picture by doing `!img A cat style=REALISTIC`
|
|
|
|
4. Do `!help` for getting more help
|
|
|
|
|
2023-06-08 23:03:59 +05:30
|
|
|
## Setup
|
|
|
|
|
2023-06-09 02:19:06 +05:30
|
|
|
``` shell
|
|
|
|
git clone https://git.projectsegfau.lt/0xMRTT/matrixai.git && cd matrixai
|
|
|
|
pip install -r requirements.txt
|
|
|
|
cp run.sh.example run.sh
|
|
|
|
mkdir -p ~/.local/share/systemd/user/
|
|
|
|
cp matrixai.service ~/.local/share/systemd/user/
|
|
|
|
```
|
|
|
|
|
|
|
|
And after
|
|
|
|
|
2023-06-08 23:03:59 +05:30
|
|
|
- Customize `run.sh` with your settings
|
2023-06-09 02:19:06 +05:30
|
|
|
- Fix the path to `run.sh` in the service file (`~/.local/share/systemd/user/matrixai.service`)
|
|
|
|
|
|
|
|
## Thanks
|
|
|
|
|
|
|
|
- [Baichat-py](https://bavarder.codeberg.page/code/baichat)
|
2023-06-09 02:36:49 +05:30
|
|
|
- [Project Segfault](https://psf.lt)
|
2023-06-09 02:19:06 +05:30
|
|
|
- [Simple Matrix Bot](https://simple-matrix-bot-lib.readthedocs.io/en/latest/examples.html)
|
|
|
|
- [Discord AI](https://github.com/mishalhossin/Discord-AI-Chatbot/tree/main)
|