Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
553ca09
1
Parent(s):
fe6e496
Update dev.py
Browse files- Powers/plugins/dev.py +1 -8
Powers/plugins/dev.py
CHANGED
|
@@ -14,7 +14,7 @@ from pyrogram.types import Message
|
|
| 14 |
|
| 15 |
from Powers import (BOT_TOKEN, DEV_USERS, LOG_DATETIME, LOGFILE, LOGGER,
|
| 16 |
MESSAGE_DUMP, OWNER_ID, UPTIME)
|
| 17 |
-
from Powers.bot_class import Gojo
|
| 18 |
from Powers.database import MongoDB
|
| 19 |
from Powers.database.chats_db import Chats
|
| 20 |
from Powers.utils.clean_file import remove_markdown_and_html
|
|
@@ -319,13 +319,6 @@ async def stop_and_send_logger(c:Gojo,is_update=False):
|
|
| 319 |
Runtime: {runtime}s\n
|
| 320 |
""",
|
| 321 |
)
|
| 322 |
-
LOGGER.info(
|
| 323 |
-
"Closing client session"
|
| 324 |
-
)
|
| 325 |
-
await aiohttpsession.close()
|
| 326 |
-
LOGGER.info(
|
| 327 |
-
"Client session closed"
|
| 328 |
-
)
|
| 329 |
return
|
| 330 |
|
| 331 |
@Gojo.on_message(command(["restart", "update"], owner_cmd=True))
|
|
|
|
| 14 |
|
| 15 |
from Powers import (BOT_TOKEN, DEV_USERS, LOG_DATETIME, LOGFILE, LOGGER,
|
| 16 |
MESSAGE_DUMP, OWNER_ID, UPTIME)
|
| 17 |
+
from Powers.bot_class import Gojo
|
| 18 |
from Powers.database import MongoDB
|
| 19 |
from Powers.database.chats_db import Chats
|
| 20 |
from Powers.utils.clean_file import remove_markdown_and_html
|
|
|
|
| 319 |
Runtime: {runtime}s\n
|
| 320 |
""",
|
| 321 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
return
|
| 323 |
|
| 324 |
@Gojo.on_message(command(["restart", "update"], owner_cmd=True))
|