Creates destinyPoints.txt
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -149,3 +149,4 @@ static
|
|||||||
.vscode/
|
.vscode/
|
||||||
token.txt
|
token.txt
|
||||||
resources/swcharacters.json
|
resources/swcharacters.json
|
||||||
|
resources/destinyPoints.txt
|
||||||
|
10
Gwendolyn.py
10
Gwendolyn.py
@ -20,6 +20,16 @@ except:
|
|||||||
finally:
|
finally:
|
||||||
f.close()
|
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
|
# Gets secret bot token
|
||||||
with open("token.txt","r") as f:
|
with open("token.txt","r") as f:
|
||||||
token = f.read().replace("\n","")
|
token = f.read().replace("\n","")
|
||||||
|
Reference in New Issue
Block a user