From fcf6e1e3c577f3cd34ffcbb1f7c3b376b0577a4f Mon Sep 17 00:00:00 2001 From: Nikolaj Date: Mon, 14 Jun 2021 17:45:59 +0200 Subject: [PATCH] :sparkles: Fixed starting files --- resources/startingFiles.json | 1 + utils/utilFunctions.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/startingFiles.json b/resources/startingFiles.json index 8ebaa57..b657456 100644 --- a/resources/startingFiles.json +++ b/resources/startingFiles.json @@ -63,6 +63,7 @@ "options.txt" : "Testing: True\nTesting guild ids:\nAdmins:" }, "folder" : [ + "resources/lookup", "resources/games/blackjackTables", "resources/games/connect4Boards", "resources/games/hexBoards", diff --git a/utils/utilFunctions.py b/utils/utilFunctions.py index 92c655a..1d0600b 100644 --- a/utils/utilFunctions.py +++ b/utils/utilFunctions.py @@ -90,15 +90,15 @@ def makeFiles(): with open("resources/startingFiles.json") as f: data = json.load(f) + for path in data["folder"]: + directory(path) + for path, content in data["json"].items(): makeJsonFile(path,content) for path, content in data["txt"].items(): makeTxtFile(path,content) - for path in data["folder"]: - directory(path) - # Replaces multiple things with the same thing def replaceMultiple(mainString, toBeReplaces, newString): # Iterate over the strings to be replaced