fix: add readme

This commit is contained in:
0xMRTT 2023-06-08 22:49:06 +02:00
parent d18566fb82
commit 58993a34c1
Signed by: 0xMRTT
GPG Key ID: 910B287304120902
3 changed files with 36 additions and 8 deletions

View File

@ -1,6 +1,31 @@
# MatrixAI Bot
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
## Setup ## Setup
- Install poetry ``` shell
- Copy `matrixai.service` to `~/.local/share/systemd/user/` 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
- Customize `run.sh` with your settings - Customize `run.sh` with your settings
- Fix the path to `run.sh` in the service file - 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)
- [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)

View File

@ -1,11 +1,10 @@
[Unit] [Unit]
Description=Matrix AI Description=Matrix AI Bot
After=multi-user.target
[Service] [Service]
Type=simple Type=simple
Restart=always ExecStart=/bin/bash /home/0xmrtt/matrixai/run.sh
ExecStart=/home/0xmrtt/matrixai/run.sh WorkingDirectory=/home/0xmrtt/matrixai
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
simplematrixbotlib
baichat-py
aiohttp
langdetect