mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-04 11:24:50 +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_LOAD = []
|
||||||
MOD_NOLOAD = []
|
MOD_NOLOAD = []
|
||||||
HELPABLE = {}
|
HELPABLE = {}
|
||||||
|
cleanmode = {}
|
||||||
botStartTime = time.time()
|
botStartTime = time.time()
|
||||||
|
|
||||||
# Pyrogram Bot Client
|
# Pyrogram Bot Client
|
||||||
|
|
|
||||||
4
utils.py
4
utils.py
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue