From a19d4298417945d48486084e430ee06a935fef11 Mon Sep 17 00:00:00 2001
From: Lynne <lynne@bune.city>
Date: Mon, 1 Jul 2019 17:19:52 +1000
Subject: [PATCH] added documentation and default value for as of yet
 unimplemented paired punctuation stripping functionality (#25)

---
 README.md   | 1 +
 config.json | 4 ++--
 main.py     | 3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)

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')))