Skip to content

Commit

Permalink
resolve dependabot issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiTheModder committed Dec 4, 2024
1 parent 9856ea4 commit 6b120bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,13 @@ async def load_all_mods(_, message: Message):


@Client.on_message(filters.command(["unloadallmods", "ulmall"], prefix) & filters.me)
async def load_all_mods(_, message: Message):
async def unload_all_mods(_, message: Message):
await message.edit("<b>Fetching info...</b>")

if not os.path.exists(f"{BASE_PATH}/modules/custom_modules"):
return await message.edit("<b>You don't have any modules installed</b>")
else:
shutil.rmtree(f"{BASE_PATH}/modules/custom_modules")
await message.edit("<b>Successfully unloaded all modules!\nRestarting...</b>")
shutil.rmtree(f"{BASE_PATH}/modules/custom_modules")
await message.edit("<b>Successfully unloaded all modules!\nRestarting...</b>")

db.set(
"core.updater",
Expand Down

0 comments on commit 6b120bb

Please sign in to comment.