creates token.txt if it doesn't exist
This commit is contained in:
10
Gwendolyn.py
10
Gwendolyn.py
@ -27,6 +27,16 @@ except:
|
||||
funcs.logThis("destinyPoints.txt didn't exist. Making it now.")
|
||||
with open("resources/destinyPoints.txt","w") as f:
|
||||
f.write("")
|
||||
finally:
|
||||
f.close()
|
||||
# Creates token.txt
|
||||
try:
|
||||
f = open("token.txt","r")
|
||||
except:
|
||||
funcs.logThis("token.txt didn't exist. Write your bot token in the file.")
|
||||
with open("resources/destinyPoints.txt","w") as f:
|
||||
f.write("Replace this line with bot token")
|
||||
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
|
Reference in New Issue
Block a user