отклик добавит
This commit is contained in:
1 parent
48df539ee6
commit
80ecdaea02
3 files changed
+65
-31
No files matched your search
+3
-2
@@ -60,10 +60,11 @@ def is_replied_bot(message, is_channel, user_text, config=None):
|
||||
)
|
||||
if config:
|
||||
if config.get("call") == "da":
|
||||
calls = config.get("calling") or BOT_CALLS
|
||||
mentions_bot = any(
|
||||
user_text.lower().split(" ", 1)[0] == call for call in BOT_CALLS
|
||||
user_text.lower().split(" ", 1)[0] == call.lower() for call in calls
|
||||
)
|
||||
for call in BOT_CALLS:
|
||||
for call in calls:
|
||||
if call.startswith("@"):
|
||||
if call.lower() in user_text.lower():
|
||||
mentions_bot = True
|
||||
|
||||
Reference in new issue
Block a user