forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2024-05-17 00:55:21 +03:00
parent 2c14d23e7b
commit e17904e938
1 changed files with 13 additions and 11 deletions

View File

@ -73,6 +73,7 @@ def execute_blackjack(v, target, body, kind):
if not execute: return False
if v:
v.shadowbanned = AUTOJANNY_ID
ma = ModAction(
@ -105,7 +106,8 @@ def execute_blackjack(v, target, body, kind):
if extra_info:
for id in notified_ids:
send_repeatable_notification_duplicated(id, f"Blackjack by @{v.username}: {extra_info}")
username = v.username if v else 'AutoJanny'
send_repeatable_notification_duplicated(id, f"Blackjack by @{username}: {extra_info}")
return True
def find_all_emoji_endings(emoji):