Creates destinyPoints.txt

This commit is contained in:
NikolajDanger
2020-04-02 16:56:07 +02:00
parent 8fcb0d4b9e
commit 84809bf5ea
2 changed files with 11 additions and 0 deletions

View File

@ -20,6 +20,16 @@ except:
finally:
f.close()
# Creates destinyPoints.txt if it doesn't exist
try:
f = open("resources/destinyPoints.txt","r")
except:
funcs.logThis("destinyPoints.txt didn't exist. Making it now.")
with open("resources/destinyPoints.txt","w") as f:
f.write("")
finally:
f.close()
# Gets secret bot token
with open("token.txt","r") as f:
token = f.read().replace("\n","")