From dac0a6569c87e32b83fde92d32fc434f9500346a Mon Sep 17 00:00:00 2001 From: huker667 Date: Fri, 29 May 2026 15:49:45 +0300 Subject: da bot name da --- helpers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/helpers.py b/helpers.py index f4ea3cd..4204870 100644 --- a/helpers.py +++ b/helpers.py @@ -33,12 +33,20 @@ def is_replied_bot(message, is_channel, user_text, config=None): mentions_bot = any( user_text.lower().startswith(call.lower()) for call in BOT_CALLS ) + for call in BOT_CALLS: + if call.startswith("@"): + if call.lower() in user_text.lower(): + mentions_bot = True else: mentions_bot = False else: mentions_bot = any( user_text.lower().startswith(call.lower()) for call in BOT_CALLS ) + for call in BOT_CALLS: + if call.startswith("@"): + if call.lower() in user_text.lower(): + mentions_bot = True if not (is_reply_to_bot or mentions_bot): return False return True -- cgit v1.3.1