From 4cc1cce39d1d2cd3c5f97b53e90aae4df4c48d72 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Mon, 3 Aug 2020 22:50:49 +0200 Subject: [PATCH] :bug: --- funcs/miscFuncs.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/funcs/miscFuncs.py b/funcs/miscFuncs.py index 1cf2d0b..ae0ef31 100644 --- a/funcs/miscFuncs.py +++ b/funcs/miscFuncs.py @@ -204,6 +204,16 @@ def makeFiles(): f.write("The Room") finally: f.close() + + # Creates names.txt if it doesn't exist + try: + f = open("resources/names.txt","r") + except: + logThis("names.txt didn't exist. Making it now.") + with open("resources/names.txt","w") as f: + f.write("Gandalf") + finally: + f.close() # Creates token.txt if it doesn't exist try: