This commit is contained in:
Mint 2022-07-05 11:15:19 +03:00
parent bdb3a12979
commit 67a7a48a41

View file

@ -76,7 +76,7 @@ class ReplyBot:
def extract_toot(toot):
text = utils.extract_post_content(toot)
text = re.sub(r"^@\S+\s", r"", text) # remove the initial mention
text = utils.remove_mentions(cfg, text)
text = utils.remove_mentions(self.cfg, text)
text = text.lower() # treat text as lowercase for easier keyword matching (if this bot uses it)
return text