✨ Fixed starting files
This commit is contained in:
@ -63,6 +63,7 @@
|
||||
"options.txt" : "Testing: True\nTesting guild ids:\nAdmins:"
|
||||
},
|
||||
"folder" : [
|
||||
"resources/lookup",
|
||||
"resources/games/blackjackTables",
|
||||
"resources/games/connect4Boards",
|
||||
"resources/games/hexBoards",
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user