master
Aevann1 2022-08-14 01:49:18 +02:00
parent 58736f8616
commit 1be6a6f0dd
2 changed files with 7 additions and 0 deletions

View File

@ -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':

View File

@ -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')