mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 20:04:51 +00:00
Tes cleanmode AFK
This commit is contained in:
parent
272967bd6c
commit
a9f1dc4162
1 changed files with 3 additions and 3 deletions
|
|
@ -58,9 +58,8 @@ async def start_bot():
|
||||||
SUDO,
|
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}.",
|
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:
|
except Exception as e:
|
||||||
pass
|
LOGGER.error(str(e))
|
||||||
asyncio.create_task(auto_clean())
|
|
||||||
await idle()
|
await idle()
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -340,6 +339,7 @@ async def cleanup():
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
|
asyncio.create_task(auto_clean())
|
||||||
loop.run_until_complete(start_bot())
|
loop.run_until_complete(start_bot())
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue