mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-05 03:34:51 +00:00
Tes cleanmode AFK
This commit is contained in:
parent
72d320a2b0
commit
f232a32a58
1 changed files with 3 additions and 1 deletions
4
utils.py
4
utils.py
|
|
@ -17,6 +17,8 @@ from misskaty import app, cleanmode
|
||||||
LOGGER = getLogger(__name__)
|
LOGGER = getLogger(__name__)
|
||||||
BANNED = {}
|
BANNED = {}
|
||||||
|
|
||||||
|
loop = asyncio.get_event_loop()
|
||||||
|
|
||||||
|
|
||||||
async def put_cleanmode(chat_id, message_id):
|
async def put_cleanmode(chat_id, message_id):
|
||||||
if chat_id not in cleanmode:
|
if chat_id not in cleanmode:
|
||||||
|
|
@ -145,4 +147,4 @@ def extract_user(message: Message) -> Union[int, str]:
|
||||||
return (user_id, user_first_name)
|
return (user_id, user_first_name)
|
||||||
|
|
||||||
|
|
||||||
asyncio.create_task(auto_clean())
|
loop.run_until_complete(auto_clean)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue