From 905e8ae351f43f2e2bd3cd13c465a77642d6a288 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 18 Aug 2022 11:52:37 +0200 Subject: [PATCH] WPD daisy filter --- files/helpers/alerts.py | 4 ++++ files/helpers/const.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index ec973f118..a0eb82dbd 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -97,6 +97,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 == "WPD" and 'daisy' in text.lower(): + 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 513d3f98c..a9d11283c 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -116,6 +116,8 @@ elif SITE_NAME == 'WPD': "gook": "superior IQ Asian", "kike": "jewish chad", "daisy's destruction": "Cars 2", + "daisys destruction": "Cars 2", + "daisy destruction": "Cars 2", } else: SLURS = {