fix
This commit is contained in:
parent
76fbd8721e
commit
03d53281a9
@ -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 ««")
|
||||||
|
@ -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,7 +28,8 @@ 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):
|
||||||
os.remove(os.path.join(raw, file))
|
if file.endswith('.raw'):
|
||||||
|
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:
|
||||||
await message.reply_text("❌ **no raw files**")
|
await message.reply_text("❌ **no raw files**")
|
||||||
|
Loading…
Reference in New Issue
Block a user