taslim19
Initial commit
80287e2
raw
history blame contribute delete
508 Bytes
import os
import shutil
from pyrogram import filters
from Devine import app
from Devine.misc import SUDOERS
@app.on_message(filters.command("clean") & SUDOERS)
async def clean(_, message):
A = await message.reply_text("ᴄʟᴇᴀɴɪɴɢ ᴛᴇᴍᴘ ᴅɪʀᴇᴄᴛᴏʀɪᴇs...")
dir = "downloads"
dir1 = "cache"
shutil.rmtree(dir)
shutil.rmtree(dir1)
os.mkdir(dir)
os.mkdir(dir1)
await A.edit("ᴛᴇᴍᴘ ᴅɪʀᴇᴄᴛᴏʀɪᴇs ᴀʀᴇ ᴄʟᴇᴀɴᴇᴅ")