d4rktg 0.6.8__py3-none-any.whl → 0.7.0__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/_decorators.py CHANGED
@@ -60,7 +60,7 @@ def authorize(
60
60
 
61
61
  authorized = (
62
62
  (user.id == OWNER)
63
- or (sudo and user.id in getattr(client, "sudo_users", []))
63
+ or (sudo and str(user.id) in getattr(client, "sudo_users", []))
64
64
  or is_admin
65
65
  )
66
66
  return bool(authorized)
d4rk/Utils/_round.py CHANGED
@@ -16,7 +16,7 @@ def round():
16
16
  async def func(flt, client, message: Message):
17
17
  chat_id = message.chat.id
18
18
  msg_id = message.id
19
- logger.debug(f"RoundRobin filter check for chat_id={chat_id}, msg_id={msg_id}")
19
+ logger.info(f"RoundRobin filter check for chat_id={chat_id}, msg_id={msg_id}")
20
20
 
21
21
  # Initialize per-chat structures
22
22
  if chat_id not in bot_order_per_chat:
@@ -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,6 +48,7 @@ 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
 
51
54
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: d4rktg
3
- Version: 0.6.8
3
+ Version: 0.7.0
4
4
  Summary: A module for create with easy and fast
5
5
  Author: D4rkShell
6
6
  Author-email: premiumqtrst@gmail.com
@@ -10,15 +10,15 @@ d4rk/Models/__init__.py,sha256=7bYM2c5Uk_VEg7NxIGH2EcEXGcAguwxvH23-Gy1orMM,100
10
10
  d4rk/Models/_commands.py,sha256=SfgE_8crh-gbyOmKkHMdilaUC_k0XQW3LKFK2MKp1wo,3001
11
11
  d4rk/Models/_movie_title.py,sha256=Xp8eafBP-kD3MxAdeNcb7EyiAojn5fDQ18la7vxrg10,812
12
12
  d4rk/Utils/__init__.py,sha256=nWnDrvTJ8BgbqEE9aiVOcT8JoxK6P4XvP9_rgUwEHXs,333
13
- d4rk/Utils/_decorators.py,sha256=ykdHiO1c-S3mHdWGHGPE22ZUG6nsnAcZLfV1u7zr8vE,2667
13
+ d4rk/Utils/_decorators.py,sha256=xplcr3qUSewGKET0Y7TnW2ddL3ZY0IeHS5y3WewB-tc,2672
14
14
  d4rk/Utils/_delete.py,sha256=gSmQAENGmM5XCCJfPuJ4vRMSxtixYG0vYdocU-2TSFg,581
15
15
  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=Cj_svnnLOjdUdpgAe9-CQtQdgdk8H35615HPK7Tz6Ls,3596
19
+ d4rk/Utils/_round.py,sha256=sPyk4-jdaT45vWDfMPaOA9hbQ48EotAg37ubm0lyIBs,3893
20
20
  d4rk/Utils/_terminal.py,sha256=Anu4OcffY3v6LMOrCskP1cHrJIliomo1Hjownbhh2sQ,125
21
- d4rktg-0.6.8.dist-info/METADATA,sha256=r1l645TDOplZTl-8wqoRT2zVRTJdctFar8ie7m82PqU,652
22
- d4rktg-0.6.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- d4rktg-0.6.8.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
24
- d4rktg-0.6.8.dist-info/RECORD,,
21
+ d4rktg-0.7.0.dist-info/METADATA,sha256=x9OVtk2N6i0O4u6n4V1ls8FJDvsE4BfrZ92IHJ9XtO4,652
22
+ d4rktg-0.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ d4rktg-0.7.0.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
24
+ d4rktg-0.7.0.dist-info/RECORD,,
File without changes