From 1be6a6f0dd1935e307c424e0db15ff92bf48f5e7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 14 Aug 2022 01:49:18 +0200 Subject: [PATCH] sneed --- files/helpers/alerts.py | 4 ++++ files/helpers/const.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 17484885a..ba8452e22 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -107,6 +107,10 @@ def NOTIFY_USERS(text, v): user = get_user(i.group(2), graceful=True) if user and v.id != user.id and not v.any_block_exists(user): notify_users.add(user.id) + if SITE_NAME == "LGBDropTheT" and any(i in text.lower() for i in BAD_WORDS): + admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level > 0).all()] + notify_users.update(admin_ids) + return notify_users - bots if PUSHER_ID != 'blahblahblah': diff --git a/files/helpers/const.py b/files/helpers/const.py index c47264dce..22a8c8f97 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1058,3 +1058,6 @@ has_logo = path.exists(f'files/assets/images/{SITE_NAME}/logo.webp') has_app = path.exists(f'files/assets/app_{SITE_NAME}_v2.4.apk') GLOBAL = environ.get("GLOBAL") + +if SITE_NAME == "LGBDropTheT": + BAD_WORDS = ('tranny', 'troon', 'trancel', 'nigger', '(((', 'kike', 'k1ke', 'kik3', 'k1k3') \ No newline at end of file