🔀 Fixed starting files
✨ Fixed starting files
This commit is contained in:
@ -63,6 +63,7 @@
|
|||||||
"options.txt" : "Testing: True\nTesting guild ids:\nAdmins:"
|
"options.txt" : "Testing: True\nTesting guild ids:\nAdmins:"
|
||||||
},
|
},
|
||||||
"folder" : [
|
"folder" : [
|
||||||
|
"resources/lookup",
|
||||||
"resources/games/blackjackTables",
|
"resources/games/blackjackTables",
|
||||||
"resources/games/connect4Boards",
|
"resources/games/connect4Boards",
|
||||||
"resources/games/hexBoards",
|
"resources/games/hexBoards",
|
||||||
|
@ -90,15 +90,15 @@ def makeFiles():
|
|||||||
with open("resources/startingFiles.json") as f:
|
with open("resources/startingFiles.json") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
||||||
|
for path in data["folder"]:
|
||||||
|
directory(path)
|
||||||
|
|
||||||
for path, content in data["json"].items():
|
for path, content in data["json"].items():
|
||||||
makeJsonFile(path,content)
|
makeJsonFile(path,content)
|
||||||
|
|
||||||
for path, content in data["txt"].items():
|
for path, content in data["txt"].items():
|
||||||
makeTxtFile(path,content)
|
makeTxtFile(path,content)
|
||||||
|
|
||||||
for path in data["folder"]:
|
|
||||||
directory(path)
|
|
||||||
|
|
||||||
# Replaces multiple things with the same thing
|
# Replaces multiple things with the same thing
|
||||||
def replaceMultiple(mainString, toBeReplaces, newString):
|
def replaceMultiple(mainString, toBeReplaces, newString):
|
||||||
# Iterate over the strings to be replaced
|
# Iterate over the strings to be replaced
|
||||||
|
Reference in New Issue
Block a user