d4rktg 0.9.0__py3-none-any.whl → 0.9.2__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/Handlers/_bot.py CHANGED
@@ -128,8 +128,7 @@ class BotManager(Client):
128
128
  except Exception as e:
129
129
  logger.error(f"Error sending stop confirmation for {self._bot_info.first_name}: {e}")
130
130
  await super().stop()
131
- await asyncio.sleep(10)
132
- sys.exit(0)
131
+ await asyncio.sleep(3)
133
132
 
134
133
  async def reboot(self):
135
134
  try:
@@ -171,7 +170,8 @@ class BotManager(Client):
171
170
  await self.send_message(chat_id=chat_id, text="Bot restarted successfully!",reply_to_message_id=Message_id-1,)
172
171
  await self.delete_messages(chat_id=chat_id,message_ids=Message_id)
173
172
  except:pass
174
- os.remove('restart.txt')
173
+
174
+ if os.path.exists('restart.txt'):os.remove('restart.txt')
175
175
  else:
176
176
  try:await self.send_message(chat_id=self.LOGS, text=f"{self._bot_info.mention} started successfully!")
177
177
  except Exception as e:logger.error(f"Failed to send start notification: {e}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: d4rktg
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: A module for create with easy and fast
5
5
  Author: D4rkShell
6
6
  Author-email: premiumqtrst@gmail.com
@@ -2,7 +2,7 @@ d4rk/__init__.py,sha256=Xq5qqX-FwosTJBLrSPF53FPD6fEISH750hbImZpSu5k,202
2
2
  d4rk/Database/__init__.py,sha256=TQB5D8PBDCq80jPq6rsC2G939yYYKTh_bCcOWsZ-nA8,18
3
3
  d4rk/Database/db.py,sha256=5T-dbHPQp9JF2rQb707SLSSkAaz8ghX4lO7g_Siy7oA,1870
4
4
  d4rk/Handlers/__init__.py,sha256=lO1b7Tnu3GWgwcJmX5qepiNqaBBi6qTgjj0SlzVUyEA,63
5
- d4rk/Handlers/_bot.py,sha256=ajBqFcSuBsXJXfK1uVqFg41a58SloDCF0mGJXN-E0Bw,8932
5
+ d4rk/Handlers/_bot.py,sha256=eTPQ0FwGl8BYSWrHE_ui1Zcg5J2IjtoxDlpfbSdoHys,8941
6
6
  d4rk/Handlers/_scheduler.py,sha256=AyqexO4nxZlIzRfU9vWTfJtTWQVQmP4de7GRPg-3JkA,1236
7
7
  d4rk/Logs/__init__.py,sha256=mXWD5jXnyH3_AvS7K_ki3iw5BpoEAvrDFbmr-iEFNnY,22
8
8
  d4rk/Logs/_logger.py,sha256=lqfVvCO0vZ_IaGOdIE4HA2KAUQZh7yW2iAHZcBz7F4o,4120
@@ -18,7 +18,7 @@ d4rk/Utils/_movie_parser.py,sha256=QEPd3z04p4pk2vxZ-2fYlRxHmQbmwQd2mCIlBsBM5AY,7
18
18
  d4rk/Utils/_ractions.py,sha256=wOVPyoFnbDuMgoP6NF_gLO1DYcfhERC0trdAK1jWSE8,2170
19
19
  d4rk/Utils/_round.py,sha256=LaQlklg4f8n4cJjVzeYisd8l9D1gYNuQ9Ka41v8XWtE,1696
20
20
  d4rk/Utils/_terminal.py,sha256=Anu4OcffY3v6LMOrCskP1cHrJIliomo1Hjownbhh2sQ,125
21
- d4rktg-0.9.0.dist-info/METADATA,sha256=05LWTyU92hD9ue4eHuTVQQY6RgcXfiuUKKFUzEVkAtk,652
22
- d4rktg-0.9.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- d4rktg-0.9.0.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
24
- d4rktg-0.9.0.dist-info/RECORD,,
21
+ d4rktg-0.9.2.dist-info/METADATA,sha256=go-7ytFZg3DUNYLcsV9O8POM0TXTWxJjZjX3kS1SHPQ,652
22
+ d4rktg-0.9.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ d4rktg-0.9.2.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
24
+ d4rktg-0.9.2.dist-info/RECORD,,
File without changes