From 9f0b23837023ce251b71c7340517bbed839429f9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 20 Jan 2023 07:13:53 +0200 Subject: [PATCH] increase ts gate for masterbaiters from 0 to 100 and ban merari from it --- files/classes/user.py | 4 +++- files/helpers/config/const.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 01e94aa6a..d803b5c8c 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1002,9 +1002,11 @@ class User(Base): @property @lazy def can_see_masterbaiters(self): + if self.id == 2074: return False if self.shadowbanned: return False if self.is_suspended_permanently: return False - return True + if self.truescore >= TRUESCORE_MASTERBAITERS_MINIMUM: return True + return False @property @lazy diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 73642e0b6..1e0fabb04 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -586,6 +586,7 @@ TRUESCORE_DONATE_MINIMUM = 100 TRUESCORE_GHOST_MINIMUM = 0 TRUESCORE_CHUDRAMA_MINIMUM = 1488 TRUESCORE_CLUB_MINIMUM = 1000 +TRUESCORE_MASTERBAITERS_MINIMUM = 100 LOGGEDIN_ACTIVE_TIME = 15 * 60 PFP_DEFAULT_MARSEY = True