mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +00:00
Fix
This commit is contained in:
parent
b7af81e7c3
commit
d5dbfde3b8
3 changed files with 4 additions and 3 deletions
|
|
@ -60,6 +60,7 @@ async def start_bot():
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOGGER.error(str(e))
|
LOGGER.error(str(e))
|
||||||
|
asyncio.create_task(auto_clean())
|
||||||
await idle()
|
await idle()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ async def active_afk(_, message):
|
||||||
f"**{message.from_user.first_name}** is back online",
|
f"**{message.from_user.first_name}** is back online",
|
||||||
disable_web_page_preview=True,
|
disable_web_page_preview=True,
|
||||||
)
|
)
|
||||||
await put_cleanmode(message.chat.id, send.message_id)
|
await put_cleanmode(message.chat.id, send.id)
|
||||||
return
|
return
|
||||||
if len(message.command) == 1 and not message.reply_to_message:
|
if len(message.command) == 1 and not message.reply_to_message:
|
||||||
details = {
|
details = {
|
||||||
|
|
@ -179,7 +179,7 @@ async def active_afk(_, message):
|
||||||
send = await message.reply_text(
|
send = await message.reply_text(
|
||||||
f"{message.from_user.mention} [<code>{message.from_user.id}</code>] is now AFK! This message will be deleted in 10s."
|
f"{message.from_user.mention} [<code>{message.from_user.id}</code>] is now AFK! This message will be deleted in 10s."
|
||||||
)
|
)
|
||||||
await put_cleanmode(message.chat.id, send.message_id)
|
await put_cleanmode(message.chat.id, send.id)
|
||||||
|
|
||||||
|
|
||||||
@app.on_message(filters.command("afkdel") & ~filters.private)
|
@app.on_message(filters.command("afkdel") & ~filters.private)
|
||||||
|
|
|
||||||
|
|
@ -228,6 +228,6 @@ async def chat_watcher_func(_, message):
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
await put_cleanmode(message.chat.id, send.message_id)
|
await put_cleanmode(message.chat.id, send.id)
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue