mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-10 13:34:51 +00:00
Tes cleanmode AFK
This commit is contained in:
parent
a9f1dc4162
commit
354cdbb249
1 changed files with 0 additions and 7 deletions
|
|
@ -332,20 +332,13 @@ General command are:
|
||||||
return await client.answer_callback_query(query.id)
|
return await client.answer_callback_query(query.id)
|
||||||
|
|
||||||
|
|
||||||
async def cleanup():
|
|
||||||
await user.stop()
|
|
||||||
await app.stop()
|
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logging.error(err.with_traceback(None))
|
logging.error(err.with_traceback(None))
|
||||||
finally:
|
finally:
|
||||||
loop.run_until_complete(cleanup())
|
|
||||||
loop.stop()
|
loop.stop()
|
||||||
print("------------------------ Stopped Services ------------------------")
|
print("------------------------ Stopped Services ------------------------")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue