d4rktg 1.0.1__tar.gz → 1.0.3__tar.gz

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.
Files changed (31) hide show
  1. {d4rktg-1.0.1/d4rktg.egg-info → d4rktg-1.0.3}/PKG-INFO +1 -1
  2. d4rktg-1.0.3/VERSION.txt +1 -0
  3. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Handlers/_bot.py +7 -5
  4. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Handlers/_custom.py +1 -1
  5. {d4rktg-1.0.1 → d4rktg-1.0.3/d4rktg.egg-info}/PKG-INFO +1 -1
  6. d4rktg-1.0.1/VERSION.txt +0 -1
  7. {d4rktg-1.0.1 → d4rktg-1.0.3}/MANIFEST.in +0 -0
  8. {d4rktg-1.0.1 → d4rktg-1.0.3}/README.rst +0 -0
  9. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Database/__init__.py +0 -0
  10. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Database/db.py +0 -0
  11. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Handlers/__init__.py +0 -0
  12. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Handlers/_scheduler.py +0 -0
  13. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Logs/__init__.py +0 -0
  14. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Logs/_logger.py +0 -0
  15. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/__init__.py +0 -0
  16. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_buttons.py +0 -0
  17. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_decorators.py +0 -0
  18. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_filters.py +0 -0
  19. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_fonts.py +0 -0
  20. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_ip.py +0 -0
  21. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_movie_parser.py +0 -0
  22. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_ractions.py +0 -0
  23. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_terminal.py +0 -0
  24. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/__init__.py +0 -0
  25. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rktg.egg-info/SOURCES.txt +0 -0
  26. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rktg.egg-info/dependency_links.txt +0 -0
  27. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rktg.egg-info/requires.txt +0 -0
  28. {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rktg.egg-info/top_level.txt +0 -0
  29. {d4rktg-1.0.1 → d4rktg-1.0.3}/requirements.txt +0 -0
  30. {d4rktg-1.0.1 → d4rktg-1.0.3}/setup.cfg +0 -0
  31. {d4rktg-1.0.1 → d4rktg-1.0.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: d4rktg
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: A module for create with easy and fast
5
5
  Author: D4rkShell
6
6
  Author-email: premiumqtrst@gmail.com
@@ -0,0 +1 @@
1
+ 1.0.3
@@ -158,11 +158,13 @@ class BotManager(Client):
158
158
 
159
159
  async def handle_restart(self):
160
160
  if os.path.exists('restart.txt'):
161
- with open('restart.txt', 'r') as file:
162
- data = file.read().split()
163
- chat_id = int(data[0])
164
- Message_id = int(data[1])
165
- try:await self.send_message(chat_id=self.LOGS, text=f"{self._bot_info.mention} restarted successfully!")
161
+ try:
162
+ with open('restart.txt', 'r') as file:
163
+
164
+ data = file.read().split()
165
+ chat_id = int(data[0])
166
+ Message_id = int(data[1])
167
+ await self.send_message(chat_id=self.LOGS, text=f"{self._bot_info.mention} restarted successfully!")
166
168
  except Exception as e:logger.error(f"Failed to send restart notification: {e}")
167
169
  try:await self.edit_message_text(chat_id=chat_id,message_id=Message_id, text="Bot restarted successfully!")
168
170
  except:
@@ -20,7 +20,7 @@ class FontMessageMixin(Client):
20
20
 
21
21
  async def send_reaction(self,chat_id:Union[int,str], message_id:int=None, story_id:int=None, emoji:Union[int,str,List[Union[int,str]]]=None, big:bool=False, add_to_recent:bool=False, *args, **kwargs):
22
22
  global worker_running
23
- await reaction_queue.put(chat_id, message_id, story_id, emoji, big, add_to_recent)
23
+ await reaction_queue.put([chat_id, message_id, story_id, emoji, big, add_to_recent])
24
24
  if not worker_running:
25
25
  worker_running = True
26
26
  asyncio.create_task(self.reaction_worker())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: d4rktg
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: A module for create with easy and fast
5
5
  Author: D4rkShell
6
6
  Author-email: premiumqtrst@gmail.com
d4rktg-1.0.1/VERSION.txt DELETED
@@ -1 +0,0 @@
1
- 1.0.1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes