mirror of
https://git.kiwifarms.net/mint/ebooks.git
synced 2024-10-22 23:29:06 +00:00
One more
This commit is contained in:
parent
bdb3a12979
commit
67a7a48a41
1 changed files with 1 additions and 1 deletions
2
reply.py
2
reply.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue