This commit is contained in:
zxce3 2021-09-14 15:56:12 +07:00
parent 76fbd8721e
commit 03d53281a9
2 changed files with 11 additions and 10 deletions

View File

@ -66,11 +66,11 @@ if __name__ == '__main__':
loop.run_until_complete(start())
bot.start()
print("[STATUS]:✅ »» BOT CLIENT STARTED ««")
app.start()
print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««")
call_py.start()
print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««")
idle()
print("[STATUS]:❌ »» BOT STOPPED ««")
# bot.start()
# print("[STATUS]:✅ »» BOT CLIENT STARTED ««")
# app.start()
# print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««")
# call_py.start()
# print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««")
# idle()
# print("[STATUS]:❌ »» BOT STOPPED ««")

View File

@ -7,7 +7,7 @@ from helpers.filters import command
from helpers.decorators import sudo_users_only, errors
downloads = os.path.realpath("bot/downloads")
raw = os.path.realpath("raw_files")
raw = os.path.realpath(".")
@Client.on_message(command(["rmd", "cleardl"]) & ~filters.edited)
@errors
@ -28,6 +28,7 @@ async def clear_raw(_, message: Message):
ls_dir = os.listdir(raw)
if ls_dir:
for file in os.listdir(raw):
if file.endswith('.raw'):
os.remove(os.path.join(raw, file))
await message.reply_text("✅ **deleted all raw files**")
else: