This commit is contained in:
Aevann1 2022-02-28 00:05:51 +02:00
parent b1f996f0b6
commit 2a7d04ea0a
4 changed files with 9 additions and 21 deletions

View file

@ -413,7 +413,7 @@ def api_comment(v):
g.db.add(c_choice)
if request.host == 'pcmemes.net' and c.body.lower().startswith("based"):
pill = re.match("based and (.{1,20}?)(-| )pilled", body, flags=re.I|re.A)
pill = based_regex.match(body)
if level == 1: basedguy = get_account(parent_post.author_id)
else: basedguy = get_account(c.parent_comment.author_id)