🔀 Fixed starting files

 Fixed starting files
This commit is contained in:
NikolajDanger
2021-06-14 17:47:53 +02:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@ -63,6 +63,7 @@
"options.txt" : "Testing: True\nTesting guild ids:\nAdmins:"
},
"folder" : [
"resources/lookup",
"resources/games/blackjackTables",
"resources/games/connect4Boards",
"resources/games/hexBoards",

View File

@ -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