fix 500 error

master
Aevann 2024-03-07 17:37:04 +02:00
parent 5e0afc8381
commit bda75ed8ce
1 changed files with 4 additions and 0 deletions

View File

@ -66,10 +66,14 @@ def execute_blackjack(v, target, body, kind):
if not blackjack or not body: return False
execute = False
for x in blackjack.split(','):
if all(i in body.lower() for i in x.split()):
execute = True
if SITE_NAME == 'rDrama' and 'discord' in body.lower() and kind == 'message':
execute = True
if not execute: return False
v.shadowbanned = AUTOJANNY_ID