This repository has been archived on 2022-03-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Lynne 2ee9e18491
Merge pull request #36 from Lynnesbian/dependabot/pip/markovify-0.8.0
Bump markovify from 0.7.2 to 0.8.0
2020-03-08 19:53:04 +10:00
.editorconfig don't create infinite loop threads, finally fixes #17 2019-05-04 16:44:57 +10:00
.gitignore minor code cleanup 2020-03-08 19:46:07 +10:00
Dockerfile Add a Dockerfile. 2018-11-14 00:38:07 -06:00
LICENSE initial commit 2018-10-09 11:11:51 +10:00
README.md Typo fix in README.md 2019-10-22 08:49:08 -07:00
app.json oops forgot to add the app.json 2018-12-05 12:48:33 +10:00
functions.py minor code cleanup 2020-03-08 19:46:07 +10:00
gen.py fix silly mistake 2019-08-07 13:48:45 +10:00
main.py minor code cleanup 2020-03-08 19:46:07 +10:00
reply.py fix silly mistake 2019-08-07 13:48:45 +10:00
requirements.txt Bump markovify from 0.7.2 to 0.8.0 2019-12-18 19:59:37 +00:00

README.md

mstdn-ebooks

Lynnear Edition

This version makes quite a few changes from the original, such as:

  • Unicode support
  • Non-Markov stuff
  • Stores toots in a sqlite database rather than a text file
    • Doesn't unnecessarily redownload all toots every time

Install/usage guide

An installation and usage guide is available here. It's primarily targeted at Linux, but it should be possible on BSD, macOS, etc. I've also put some effort into providing steps for Windows, but I can't make any guarantees as to its effectiveness.

Compatibility

Software Downloading statuses Posting Replying
Mastodon Yes Yes Yes
Pleroma Somewhat Yes No
Misskey Yes No No
diaspora* No No No
Others Probably No No

Configuration

Configuring mstdn-ebooks is accomplished by editing config.json. If you want to use a different file for configuration, specify it with the --cfg argument. For example, if you want to use /home/lynne/c.json instead, you would run python3 main.py --cfg /home/lynne/c.json instead of just python3 main.py

Setting Default Meaning
site https://botsin.space The instance your bot will log in to and post from.
cw null The content warning (aka subject) mstdn-ebooks will apply to non-error posts.
instance_blacklist ["bofa.lol", "witches.town", "knzk.me"] If your bot is following someone from a blacklisted instance, it will skip over them and not download their posts. This is useful for ensuring that mstdn-ebooks doesn't download posts from dead instances, without you having to unfollow the user(s) from them.
learn_from_cw false If true, mstdn-ebooks will learn from CW'd posts.
mention_handling 1 0: Never use mentions. 1: Only generate fake mentions in the middle of posts, never at the start. 2: Use mentions as normal (old behaviour).
max_thread_length 15 The maximum number of bot posts in a thread before it stops replying. A thread can be 10 or 10000 posts long, but the bot will stop after it has posted max_thread_length times.
strip_paired_punctuation false If true, mstdn-ebooks will remove punctuation that commonly appears in pairs, like " and (). This avoids the issue of posts that open a bracket without closing it.