minor blackjack improvement

pull/115/head
Aevann 2023-02-07 04:15:55 +02:00
parent d9ef24d399
commit be88a74c9a
2 changed files with 5 additions and 8 deletions

View File

@ -344,15 +344,13 @@ def execute_antispam_submission_check(title, v, url):
return True return True
def execute_blackjack(v, target, body, type): def execute_blackjack(v, target, body, type):
if not body: return True if not blackjack or not body: return True
execute = False execute = False
if blackjack and any(i in body.lower() for i in blackjack.split()): for x in blackjack.split(','):
execute = True if all(i in body.lower() for i in x.split()):
shadowban = True execute = True
elif blackjack2 and all(i in body.lower() for i in blackjack2.split()): shadowban = v.truescore < 100
execute = True
shadowban = v.truescore < 100
if execute: if execute:
if shadowban: if shadowban:

View File

@ -48,7 +48,6 @@ CF_KEY = environ.get("CF_KEY").strip()
CF_ZONE = environ.get("CF_ZONE").strip() CF_ZONE = environ.get("CF_ZONE").strip()
GLOBAL = environ.get("GLOBAL", "").strip() GLOBAL = environ.get("GLOBAL", "").strip()
blackjack = environ.get("BLACKJACK", "").strip() blackjack = environ.get("BLACKJACK", "").strip()
blackjack2 = environ.get("BLACKJACK2", "").strip()
FP = environ.get("FP", "").strip() FP = environ.get("FP", "").strip()
PROGSTACK_MUL = float(environ.get("PROGSTACK_MUL", 2.0)) PROGSTACK_MUL = float(environ.get("PROGSTACK_MUL", 2.0))
ENCOURAGED = environ.get("ENCOURAGED", "").strip().split() ENCOURAGED = environ.get("ENCOURAGED", "").strip().split()