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()) loop.run_until_complete(start())
bot.start() # bot.start()
print("[STATUS]:✅ »» BOT CLIENT STARTED ««") # print("[STATUS]:✅ »» BOT CLIENT STARTED ««")
app.start() # app.start()
print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««") # print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««")
call_py.start() # call_py.start()
print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««") # print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««")
idle() # idle()
print("[STATUS]:❌ »» BOT STOPPED ««") # print("[STATUS]:❌ »» BOT STOPPED ««")

View File

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