Basic Markov bot for Misskey
Find a file
will 2c6858e306 It's a fork now
Most notably, I've moved a bunch of options to a
separate config file and added the ability to not
use a CW by leaving that field blank. Plus updated
the README
2024-05-20 16:28:48 -06:00
.gitignore It's a fork now 2024-05-20 16:28:48 -06:00
chain.py initial 2024-02-23 15:05:37 +03:00
config__.default.py It's a fork now 2024-05-20 16:28:48 -06:00
generate.py It's a fork now 2024-05-20 16:28:48 -06:00
import-misskey.py initial 2024-02-23 15:05:37 +03:00
readme.md It's a fork now 2024-05-20 16:28:48 -06:00
requirements.txt initial 2024-02-23 15:05:37 +03:00

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