creates token.txt if it doesn't exist
This commit is contained in:
1 parent
d840c36013
commit
a6b3798010
1 file changed
+10
@@ -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