mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-30 17:54:51 +00:00
update
This commit is contained in:
parent
76e696edda
commit
72d320a2b0
2 changed files with 3 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ basicConfig(
|
|||
MOD_LOAD = []
|
||||
MOD_NOLOAD = []
|
||||
HELPABLE = {}
|
||||
cleanmode = {}
|
||||
botStartTime = time.time()
|
||||
|
||||
# Pyrogram Bot Client
|
||||
|
|
|
|||
4
utils.py
4
utils.py
|
|
@ -12,7 +12,7 @@ import os
|
|||
import emoji
|
||||
from database.users_chats_db import db
|
||||
from database.afk_db import is_cleanmode_on
|
||||
from misskaty import app
|
||||
from misskaty import app, cleanmode
|
||||
|
||||
LOGGER = getLogger(__name__)
|
||||
BANNED = {}
|
||||
|
|
@ -40,7 +40,7 @@ async def auto_clean():
|
|||
try:
|
||||
await app.delete_messages(chat_id, x["msg_id"])
|
||||
except FloodWait as e:
|
||||
await asyncio.sleep(e.x)
|
||||
await asyncio.sleep(e.value)
|
||||
except:
|
||||
continue
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue