Forgot yet another variable

This commit is contained in:
Mint 2022-09-10 19:34:52 +03:00
parent 7a4cad60a7
commit d140e34055

View file

@ -11,6 +11,8 @@ def parse_args():
return utils.arg_parser_factory(description='Reply service. Leave running in the background.').parse_args() return utils.arg_parser_factory(description='Reply service. Leave running in the background.').parse_args()
class ReplyBot: class ReplyBot:
PAIRED_PUNCTUATION = re.compile(r"[{}]".format(re.escape('[](){}"‘’“”«»„')))
def __init__(self, cfg): def __init__(self, cfg):
self.cfg = cfg self.cfg = cfg
self.pleroma = pleroma.Pleroma(access_token=cfg['access_token'], api_base_url=cfg['site']) self.pleroma = pleroma.Pleroma(access_token=cfg['access_token'], api_base_url=cfg['site'])