d4rktg 0.6.9__py3-none-any.whl → 0.7.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
d4rk/Utils/_round.py
CHANGED
@@ -31,11 +31,13 @@ def round():
|
|
31
31
|
async with chat_locks[chat_id]:
|
32
32
|
# Skip if already responded
|
33
33
|
if msg_id in responded_messages[chat_id]:
|
34
|
+
logger.info(f"Message {msg_id} in chat {chat_id} already responded by this bot.")
|
34
35
|
return False
|
35
36
|
|
36
37
|
# Always respond in private chats
|
37
38
|
if message.chat.type.name.lower() == "private":
|
38
39
|
responded_messages[chat_id].add(msg_id)
|
40
|
+
logger.info(f"Responding to private message {msg_id} in chat {chat_id}")
|
39
41
|
return True
|
40
42
|
|
41
43
|
# In groups, simple round-robin
|
@@ -46,8 +48,10 @@ def round():
|
|
46
48
|
if client.me.id == selected_bot_id:
|
47
49
|
responded_messages[chat_id].add(msg_id)
|
48
50
|
last_index_per_chat[chat_id] = (current_index + 1) % len(bot_order_per_chat[chat_id])
|
51
|
+
logger.info(f"Bot {client.me.first_name} responding to message {msg_id} in chat {chat_id}")
|
49
52
|
return True
|
50
|
-
|
53
|
+
|
54
|
+
logger.info(f"Bot {client.me.first_name} not selected to respond to message {msg_id} in chat {chat_id}")
|
51
55
|
return False
|
52
56
|
|
53
57
|
return filters.create(func)
|
@@ -16,9 +16,9 @@ d4rk/Utils/_fonts.py,sha256=CQsDqPgvp27t3f75Cxod0EmZogEssLwIpyesH-YY5KM,7518
|
|
16
16
|
d4rk/Utils/_ip.py,sha256=KJJW2QSngshIVWCO5YPXF1wj4IPQzVN5oFofpfzlU5w,559
|
17
17
|
d4rk/Utils/_movie_parser.py,sha256=QEPd3z04p4pk2vxZ-2fYlRxHmQbmwQd2mCIlBsBM5AY,7039
|
18
18
|
d4rk/Utils/_ractions.py,sha256=wOVPyoFnbDuMgoP6NF_gLO1DYcfhERC0trdAK1jWSE8,2170
|
19
|
-
d4rk/Utils/_round.py,sha256=
|
19
|
+
d4rk/Utils/_round.py,sha256=cn1jk30l09eS3zcj_zzOLN4AS70omvYj_VFqF4KK6Ng,4019
|
20
20
|
d4rk/Utils/_terminal.py,sha256=Anu4OcffY3v6LMOrCskP1cHrJIliomo1Hjownbhh2sQ,125
|
21
|
-
d4rktg-0.
|
22
|
-
d4rktg-0.
|
23
|
-
d4rktg-0.
|
24
|
-
d4rktg-0.
|
21
|
+
d4rktg-0.7.1.dist-info/METADATA,sha256=ns6oMoGZYyRy-hJPbQA8N_wTT93a1MwWIdJTIKrRhWI,652
|
22
|
+
d4rktg-0.7.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
23
|
+
d4rktg-0.7.1.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
|
24
|
+
d4rktg-0.7.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|