mastodon-random-sentence-bot/README.md

31 lines
678 B
Markdown
Raw Normal View History

2023-12-03 23:01:55 +09:00
# Misskey Random Sentence Bot
## How to run
1. clone repo
2. make venv
```
python3 -m venv venv
source ./venv/bin/activate
```
3. install modules
```
pip install -r requirements.txt
```
4. change setting
```
# copy example setting file
2023-12-08 20:19:56 +09:00
cp src/setting_example.py src/setting.py
2023-12-03 23:01:55 +09:00
# edit setting file
2023-12-08 20:19:56 +09:00
vim src/setting.py
2023-12-03 23:01:55 +09:00
```
- `instance_address`: address of misskey instance that your bot will run
- `access_token`: API access token of your bot account
- `google_api_json`: your google api access json file
- `spread_sheet_url`: URL of spread sheet that include sentences as:
![](https://r2.worldc.one/media/fa04a9ba-e50e-4b63-81c3-73416f1481b7.webp)
5. RUN
```
python main.py
```