2023-12-03 23:01:55 +09:00
|
|
|
# Misskey Random Sentence Bot
|
2023-12-08 23:17:14 +09:00
|
|
|
|
2023-12-08 23:21:14 +09:00
|
|
|
[![no github badge](https://nogithub.codeberg.page/badge.svg)](https://nogithub.codeberg.page/)
|
|
|
|
|
2023-12-09 00:25:33 +09:00
|
|
|
## How to run with docker compose
|
|
|
|
|
|
|
|
1. clone repo
|
|
|
|
2. change setting
|
|
|
|
|
|
|
|
```
|
|
|
|
# copy example compose file
|
|
|
|
cp docker-compose.example.yml docker-compose.env
|
|
|
|
|
|
|
|
# edit compose file
|
|
|
|
vim .docker-compose
|
|
|
|
```
|
|
|
|
|
|
|
|
3. RUN
|
|
|
|
|
|
|
|
```
|
2023-12-09 01:44:15 +09:00
|
|
|
docker compose up
|
|
|
|
docker compose down
|
2023-12-09 00:25:33 +09:00
|
|
|
```
|
|
|
|
|
2023-12-08 23:17:14 +09:00
|
|
|
## How to run manually
|
|
|
|
|
2023-12-03 23:01:55 +09:00
|
|
|
1. clone repo
|
2023-12-09 00:22:57 +09:00
|
|
|
|
2023-12-03 23:01:55 +09:00
|
|
|
2. make venv
|
2023-12-08 23:17:14 +09:00
|
|
|
|
2023-12-03 23:01:55 +09:00
|
|
|
```
|
|
|
|
python3 -m venv venv
|
|
|
|
source ./venv/bin/activate
|
|
|
|
```
|
2023-12-08 23:17:14 +09:00
|
|
|
|
2023-12-03 23:01:55 +09:00
|
|
|
3. install modules
|
2023-12-08 23:17:14 +09:00
|
|
|
|
2023-12-03 23:01:55 +09:00
|
|
|
```
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
2023-12-08 23:17:14 +09:00
|
|
|
|
2023-12-03 23:01:55 +09:00
|
|
|
4. change setting
|
2023-12-08 23:17:14 +09:00
|
|
|
|
2023-12-03 23:01:55 +09:00
|
|
|
```
|
|
|
|
# copy example setting file
|
2023-12-08 23:17:14 +09:00
|
|
|
cp .example.env .env
|
2023-12-03 23:01:55 +09:00
|
|
|
|
|
|
|
# edit setting file
|
2023-12-08 23:17:14 +09:00
|
|
|
vim .env
|
2023-12-03 23:01:55 +09:00
|
|
|
```
|
2023-12-08 23:17:14 +09:00
|
|
|
|
2023-12-09 00:25:33 +09:00
|
|
|
5. RUN
|
2023-12-08 23:17:14 +09:00
|
|
|
|
|
|
|
```
|
2023-12-09 00:25:33 +09:00
|
|
|
python main.py
|
2023-12-08 23:17:14 +09:00
|
|
|
```
|
2023-12-09 00:22:57 +09:00
|
|
|
|
|
|
|
# Contribute
|
2023-12-09 01:37:03 +09:00
|
|
|
|
2023-12-09 00:22:57 +09:00
|
|
|
To contribute to this project is free!
|
|
|
|
|
|
|
|
## Contributors
|
2023-12-09 01:37:03 +09:00
|
|
|
|
2023-12-09 00:22:57 +09:00
|
|
|
**Thank you for your contribution!**
|
|
|
|
|
|
|
|
<a class="contributor" href="https://codeberg.org/kdh8219"><img src="https://codeberg.org/avatars/6529ee7f1f363a06741ed8851c08e94b77d27e83003d1a58f59e1e936087728c?size=512" alt="kdh8219" width="70" style="border-radius: 50%"></a>
|