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.
- {d4rktg-1.0.1/d4rktg.egg-info → d4rktg-1.0.3}/PKG-INFO +1 -1
- d4rktg-1.0.3/VERSION.txt +1 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Handlers/_bot.py +7 -5
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Handlers/_custom.py +1 -1
- {d4rktg-1.0.1 → d4rktg-1.0.3/d4rktg.egg-info}/PKG-INFO +1 -1
- d4rktg-1.0.1/VERSION.txt +0 -1
- {d4rktg-1.0.1 → d4rktg-1.0.3}/MANIFEST.in +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/README.rst +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Database/__init__.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Database/db.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Handlers/__init__.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Handlers/_scheduler.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Logs/__init__.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Logs/_logger.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/__init__.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_buttons.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_decorators.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_filters.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_fonts.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_ip.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_movie_parser.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_ractions.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/Utils/_terminal.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rk/__init__.py +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rktg.egg-info/SOURCES.txt +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rktg.egg-info/dependency_links.txt +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rktg.egg-info/requires.txt +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/d4rktg.egg-info/top_level.txt +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/requirements.txt +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/setup.cfg +0 -0
- {d4rktg-1.0.1 → d4rktg-1.0.3}/setup.py +0 -0
d4rktg-1.0.3/VERSION.txt
ADDED
@@ -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
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
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())
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|