This commit is contained in:
yasir 2022-12-05 11:31:21 +07:00
parent 76e696edda
commit 72d320a2b0
2 changed files with 3 additions and 2 deletions

View file

@ -12,6 +12,7 @@ basicConfig(
MOD_LOAD = [] MOD_LOAD = []
MOD_NOLOAD = [] MOD_NOLOAD = []
HELPABLE = {} HELPABLE = {}
cleanmode = {}
botStartTime = time.time() botStartTime = time.time()
# Pyrogram Bot Client # Pyrogram Bot Client

View file

@ -12,7 +12,7 @@ import os
import emoji import emoji
from database.users_chats_db import db from database.users_chats_db import db
from database.afk_db import is_cleanmode_on from database.afk_db import is_cleanmode_on
from misskaty import app from misskaty import app, cleanmode
LOGGER = getLogger(__name__) LOGGER = getLogger(__name__)
BANNED = {} BANNED = {}
@ -40,7 +40,7 @@ async def auto_clean():
try: try:
await app.delete_messages(chat_id, x["msg_id"]) await app.delete_messages(chat_id, x["msg_id"])
except FloodWait as e: except FloodWait as e:
await asyncio.sleep(e.x) await asyncio.sleep(e.value)
except: except:
continue continue
else: else: