Aevann 2023-10-06 16:16:55 +03:00
parent f6ccf9411c
commit 9720320722
1 changed files with 8 additions and 0 deletions

View File

@ -266,6 +266,10 @@ def execute_snappy(post, v):
def execute_zozbot(c, level, post, v):
if SITE_NAME != 'rDrama': return
if post.sub and g.db.query(Exile.user_id).filter_by(user_id=ZOZBOT_ID, sub=post.sub).one_or_none():
return
posting_to_post = isinstance(post, Post)
if random.random() >= 0.001: return
c2 = Comment(author_id=ZOZBOT_ID,
@ -331,6 +335,10 @@ def execute_zozbot(c, level, post, v):
def execute_longpostbot(c, level, body, body_html, post, v):
if SITE_NAME != 'rDrama': return
if post.sub and g.db.query(Exile.user_id).filter_by(user_id=LONGPOSTBOT_ID, sub=post.sub).one_or_none():
return
posting_to_post = isinstance(post, Post)
if not len(c.body.split()) >= 200: return
if "</blockquote>" in body_html: return