Parcourir la source

Changed the pathes of the json Files configured in the help_start and help_team files.

BaumSplitter41 il y a 3 mois
Parent
commit
1ac55ed113
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      VPD_BOT/cogs/help_start.py
  2. 1 1
      VPD_BOT/cogs/help_team.py

+ 1 - 1
VPD_BOT/cogs/help_start.py

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

+ 1 - 1
VPD_BOT/cogs/help_team.py

@@ -13,7 +13,7 @@ class helpteam(commands.Cog):
     async def help_team(self, ctx: discord.ApplicationContext):
         server = ctx.guild
 
-        json_path = Path(__file__).resolve().parent / "json_files" / "help_team.json"
+        json_path = Path(__file__).resolve().parent.parent.joinpath("json_files", "help_team.json")
         if not json_path.exists():
             await ctx.respond("The .json file is missing.")
             return