fix
This commit is contained in:
parent
76fbd8721e
commit
03d53281a9
@ -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 ««")
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user