Преглед на файлове

Changed the path of the json_files to be a sibling folder of the cogs folder.

BaumSplitter41 преди 3 месеца
родител
ревизия
e7b5d5e500
променени са 4 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      VPD_BOT/cogs/help_cache.py
  2. 0 0
      VPD_BOT/json_files/help_cache.json
  3. 0 0
      VPD_BOT/json_files/help_start.json
  4. 0 0
      VPD_BOT/json_files/help_team.json

+ 1 - 1
VPD_BOT/cogs/help_cache.py

@@ -18,7 +18,7 @@ class helpcache(commands.Cog):
         ctx,
     ):
         server = ctx.guild
-        json_path = Path(__file__).resolve().parent / "json_files" / "help_cache.json"
+        json_path = Path(__file__).resolve().parent.parent.joinpath("json_files", "help_cache.json")
         if not json_path.exists():
             await ctx.respond("The .json file is missing.")
             return

+ 0 - 0
VPD_BOT/cogs/json_files/help_cache.json → VPD_BOT/json_files/help_cache.json


+ 0 - 0
VPD_BOT/cogs/json_files/help_start.json → VPD_BOT/json_files/help_start.json


+ 0 - 0
VPD_BOT/cogs/json_files/help_team.json → VPD_BOT/json_files/help_team.json