This commit is contained in:
Aevann1 2022-01-22 02:08:55 +02:00
parent b226cd0c06
commit 57a429881c
2 changed files with 9 additions and 7 deletions

View file

@ -154,6 +154,10 @@ def api_comment(v):
body = request.values.get("body", "").strip()[:10000]
if v.admin_level == 3 and parent_post.id == 37749:
with open(f"snappy_{SITE_NAME}.txt", "a") as f:
f.write('\n{[para]}\n' + body)
if v.marseyawarded:
marregex = list(re.finditer("^(:[!#]{0,2}m\w+:\s*)+$", body))
if len(marregex) == 0: return {"error":"You can only type marseys!"}, 403