blob: 707a0964d3d2f33b78a20c0bf5c4a870274122c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Basic Markov bot for Misskey. Fork of https://activitypub.software/kopper/markov
## Setup
- Install dependencies:
```
pip install -r requirements.txt
python -m spacy download en_core_web_sm
```
- Export your notes from Misskey and generate a model:
```
python import-misskey.py notes-XXXX-XX-XX-XX-XX-XX.json
```
- Generate an API token for the bot account and use it here:
```
echo "TOKEN='yourtoken'" > secrets__.py
```
- Copy `config__.default.py` to `config__.py` and edit as needed
## Usage
```
python generate.py
```
Point a cronjob to this file to post automatically
|