d4rktg 1.0.2__py3-none-any.whl → 1.0.3__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
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: d4rktg
3
- Version: 1.0.2
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
@@ -2,7 +2,7 @@ d4rk/__init__.py,sha256=J1cGbORi1xYdwgUGvyq-GuErRav-GjEoAT7Zf4-K2uI,189
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=BBdnh4RAPXNJ1loFq6l-5FELzMNSSAkr0JWWiBl3GkA,102
5
- d4rk/Handlers/_bot.py,sha256=eTPQ0FwGl8BYSWrHE_ui1Zcg5J2IjtoxDlpfbSdoHys,8941
5
+ d4rk/Handlers/_bot.py,sha256=_gmSQtsCFG7vNcIZ_b-2FCKHC5oaBKt-K6FTKFxtN7s,8977
6
6
  d4rk/Handlers/_custom.py,sha256=Mn16iUsRucqGvnnijoBkJDg5rLC9jwM3hkyOMMDkq8E,5275
7
7
  d4rk/Handlers/_scheduler.py,sha256=AyqexO4nxZlIzRfU9vWTfJtTWQVQmP4de7GRPg-3JkA,1236
8
8
  d4rk/Logs/__init__.py,sha256=mXWD5jXnyH3_AvS7K_ki3iw5BpoEAvrDFbmr-iEFNnY,22
@@ -16,7 +16,7 @@ d4rk/Utils/_ip.py,sha256=KJJW2QSngshIVWCO5YPXF1wj4IPQzVN5oFofpfzlU5w,559
16
16
  d4rk/Utils/_movie_parser.py,sha256=Pyd_eSyzp0bBMfil0YY0zypsDWBk7LoDQBfMOQJh16Y,6204
17
17
  d4rk/Utils/_ractions.py,sha256=wOVPyoFnbDuMgoP6NF_gLO1DYcfhERC0trdAK1jWSE8,2170
18
18
  d4rk/Utils/_terminal.py,sha256=Anu4OcffY3v6LMOrCskP1cHrJIliomo1Hjownbhh2sQ,125
19
- d4rktg-1.0.2.dist-info/METADATA,sha256=fZLMGuRxzPYqXl6Igx2q5K8s7wA06nPVYkCCL8W2iZ8,652
20
- d4rktg-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- d4rktg-1.0.2.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
22
- d4rktg-1.0.2.dist-info/RECORD,,
19
+ d4rktg-1.0.3.dist-info/METADATA,sha256=yQ0ARdEtOmWhwVsd46-UHEfrtZ-n6qX4I4ClgraQDgY,652
20
+ d4rktg-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ d4rktg-1.0.3.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
22
+ d4rktg-1.0.3.dist-info/RECORD,,
File without changes