forked from rDrama/rDrama
fix long post bot lol
parent
e930b5f357
commit
6d5dcaec9a
|
@ -247,7 +247,8 @@ def execute_zozbot(c, level, parent_submission, v):
|
||||||
g.db.add(zozbot)
|
g.db.add(zozbot)
|
||||||
|
|
||||||
def execute_longpostbot(c, level, body, body_html, parent_submission, v):
|
def execute_longpostbot(c, level, body, body_html, parent_submission, v):
|
||||||
if not len(c.body.split()) >= 200 and "<" not in body and "</blockquote>" not in body_html: return
|
if not len(c.body.split()) >= 200: return
|
||||||
|
if "<" in body and "</blockquote>" in body_html: return
|
||||||
body = random.choice(LONGPOST_REPLIES)
|
body = random.choice(LONGPOST_REPLIES)
|
||||||
if body.startswith('▼'):
|
if body.startswith('▼'):
|
||||||
body = body[1:]
|
body = body[1:]
|
||||||
|
|
Loading…
Reference in New Issue