mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +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__)
|
||||
BANNED = {}
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
|
||||
async def put_cleanmode(chat_id, message_id):
|
||||
if chat_id not in cleanmode:
|
||||
|
|
@ -145,4 +147,4 @@ def extract_user(message: Message) -> Union[int, str]:
|
|||
return (user_id, user_first_name)
|
||||
|
||||
|
||||
asyncio.create_task(auto_clean())
|
||||
loop.run_until_complete(auto_clean)
|
||||
|
|
|
|||
Loading…
Reference in a new issue