fix repetitive notifs

pull/226/head
Aevann 2024-05-17 02:29:51 +03:00
parent 8ad4edf8e4
commit b2cd641ca3
1 changed files with 2 additions and 3 deletions

View File

@ -104,10 +104,9 @@ def execute_blackjack(v, target, body, kind):
extra_info = None
if extra_info:
if v and extra_info:
for id in notified_ids:
username = v.username if v else 'AutoJanny'
send_repeatable_notification_duplicated(id, f"Blackjack by @{username}: {extra_info}")
send_repeatable_notification_duplicated(id, f"Blackjack by @{v.username}: {extra_info}")
return True
def find_all_emoji_endings(emoji):