diff --git a/README.md b/README.md index 307a39e..d7a01f5 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,4 @@ Configuring mstdn-ebooks is accomplished by editing `config.json`. | 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. | diff --git a/config.json b/config.json index c065575..2b1e55a 100644 --- a/config.json +++ b/config.json @@ -1,8 +1,8 @@ { - "lang": "en", "site": "https://botsin.space", "cw": null, "learn_from_cw": false, "mention_handling": 1, - "max_thread_length": 15 + "max_thread_length": 15, + "strip_paired_punctuation": false } diff --git a/main.py b/main.py index 95ec532..7942daa 100755 --- a/main.py +++ b/main.py @@ -20,7 +20,8 @@ cfg = { "instance_blacklist": ["bofa.lol", "witches.town", "knzk.me"], "learn_from_cw": False, "mention_handling": 1, - "max_thread_length": 15 + "max_thread_length": 15, + "strip_paired_punctuation": False } cfg.update(json.load(open('config.json', 'r')))