From 5d61b6a5e6e3943846f23feca3f337d2326d42f6 Mon Sep 17 00:00:00 2001 From: Mint <> Date: Sat, 10 Sep 2022 19:35:43 +0300 Subject: [PATCH] whatever --- reply.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reply.py b/reply.py index 3b2b5d4..446dec3 100755 --- a/reply.py +++ b/reply.py @@ -11,8 +11,6 @@ def parse_args(): return utils.arg_parser_factory(description='Reply service. Leave running in the background.').parse_args() class ReplyBot: - PAIRED_PUNCTUATION = re.compile(r"[{}]".format(re.escape('[](){}"‘’“”«»„'))) - def __init__(self, cfg): self.cfg = cfg self.pleroma = pleroma.Pleroma(access_token=cfg['access_token'], api_base_url=cfg['site']) @@ -71,6 +69,7 @@ class ReplyBot: await self.pleroma.react(post_id, '✅') async def reply(self, notification): + PAIRED_PUNCTUATION = re.compile(r"[{}]".format(re.escape('[](){}"‘’“”«»„'))) toot = await utils.make_post(self.cfg) # generate a toot if self.cfg['strip_paired_punctuation']: toot = PAIRED_PUNCTUATION.sub("", toot)