From a9f1dc416202e5cd5cfc9a6427a0a013be4a9e08 Mon Sep 17 00:00:00 2001 From: yasir Date: Mon, 5 Dec 2022 11:51:29 +0700 Subject: [PATCH] Tes cleanmode AFK --- misskaty/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misskaty/__main__.py b/misskaty/__main__.py index 2ad4c32b..8b04ef45 100644 --- a/misskaty/__main__.py +++ b/misskaty/__main__.py @@ -58,9 +58,8 @@ async def start_bot(): SUDO, f"USERBOT AND BOT STARTED with Pyrogram v{__version__}..\nUserBot: {ubot.first_name}\nBot: {me.first_name}\n\nwith Pyrogram v{__version__} (Layer {layer}) started on @{me.username}.", ) - except Exception: - pass - asyncio.create_task(auto_clean()) + except Exception as e: + LOGGER.error(str(e)) await idle() @@ -340,6 +339,7 @@ async def cleanup(): if __name__ == "__main__": try: + asyncio.create_task(auto_clean()) loop.run_until_complete(start_bot()) except KeyboardInterrupt: pass