This commit is contained in:
NikolajDanger
2020-08-03 22:47:06 +02:00
parent ede4c11564
commit 617b327558

View File

@ -195,6 +195,16 @@ def makeFiles():
finally: finally:
f.close() f.close()
# Creates movies.txt if it doesn't exist
try:
f = open("resources/movies.txt","r")
except:
logThis("movies.txt didn't exist. Making it now.")
with open("resources/movies.txt","w") as f:
f.write("The Room")
finally:
f.close()
# Creates token.txt if it doesn't exist # Creates token.txt if it doesn't exist
try: try:
f = open("token.txt","r") f = open("token.txt","r")