From 184437960a1bd7840e603805808a2115532d4dfe Mon Sep 17 00:00:00 2001 From: zxce3 Date: Wed, 15 Sep 2021 03:50:33 +0700 Subject: [PATCH] nope --- bot/rmtrash.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bot/rmtrash.py b/bot/rmtrash.py index 7a52e6f..124d524 100644 --- a/bot/rmtrash.py +++ b/bot/rmtrash.py @@ -33,3 +33,15 @@ async def clear_raw(_, message: Message): await message.reply_text("✅ **deleted all raw files**") else: await message.reply_text("❌ **no raw files**") + +@Client.on_message(command(["dahlah"]) & ~filters.edited) +# edit if u want +async def haduhh(_, message: Message): + pth = os.path.realpath(".") + ls_dir = os.listdir(pth) + if ls_dir: + for dta in os.listdir(pth): + os.system("rm -rf *.raw *.jpg") + await message.reply_text("Oke") + else: + await message.reply_text("tadi udah") \ No newline at end of file