From c721b26b61d037b51a75dd5ec2f5a6c384b55e27 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 30 Jun 2023 23:17:56 +0300 Subject: [PATCH] dylan --- files/helpers/actions.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 269366c10..5c41f89d7 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -464,9 +464,26 @@ def execute_antispam_comment_check(body:str, v:User): g.db.commit() abort(403, "Too much spam!") +def execute_dylan(v:User): + if "dylan" in v.username.lower() and "hewitt" in v.username.lower(): + v.shadowbanned = AUTOJANNY_ID + v.ban_reason = "Dylan" + g.db.add(v) + ma = ModAction( + kind="shadowban", + user_id=AUTOJANNY_ID, + target_user_id=v.id, + _note=f'reason: "Dylan ({v.age} seconds)"' + ) + g.db.add(ma) + def execute_under_siege(v:User, target:Optional[Union[Post, Comment]], body, kind:str) -> bool: - if not get_setting("under_siege"): return if v.shadowbanned: return + + if SITE == 'watchpeopledie.tv' or True: + execute_dylan(v) + + if not get_setting("under_siege"): return if v.admin_level >= PERMS['SITE_BYPASS_UNDER_SIEGE_MODE']: return if kind in {'message', 'report'} and SITE == 'rdrama.net':