mastodon-random-sentence-bot/README.md

55 lines
671 B
Markdown
Raw Normal View History

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
```
docker compose run app
```
2023-12-08 23:17:14 +09:00
## How to run manually
2023-12-03 23:01:55 +09:00
1. clone repo
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
```