forked from MarseyWorld/MarseyWorld
sneed
parent
58736f8616
commit
1be6a6f0dd
|
@ -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':
|
||||
|
|
|
@ -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')
|
Loading…
Reference in New Issue