This commit is contained in:
Aevann1 2022-03-31 17:14:19 +02:00
parent 2c6ab797f9
commit 873bbe62ef
3 changed files with 2 additions and 2 deletions

View file

@ -360,7 +360,7 @@ def api_comment(v):
if parent.author.any_block_exists(v) and v.admin_level < 2:
return {"error": "You can't reply to users who have blocked you, or users you have blocked."}, 403
is_bot = bool(request.headers.get("Authorization"))
is_bot = bool(request.headers.get("Authorization")) or v.id == SNAPPY_ID
if '!slots' not in body.lower() and '!blackjack' not in body.lower() and '!wordle' not in body.lower() and parent_post.id not in ADMIGGERS and not is_bot and not v.marseyawarded and AGENDAPOSTER_PHRASE not in body.lower() and len(body) > 10:
now = int(time.time())