Creates destinyPoints.txt
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -149,3 +149,4 @@ static
|
||||
.vscode/
|
||||
token.txt
|
||||
resources/swcharacters.json
|
||||
resources/destinyPoints.txt
|
||||
|
10
Gwendolyn.py
10
Gwendolyn.py
@ -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","")
|
||||
|
Reference in New Issue
Block a user