From 84809bf5ea3f8c22ccb008f5f204820ad705df85 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Thu, 2 Apr 2020 16:56:07 +0200 Subject: [PATCH] Creates destinyPoints.txt --- .gitignore | 1 + Gwendolyn.py | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index f27642f..ef0bc2d 100644 --- a/.gitignore +++ b/.gitignore @@ -149,3 +149,4 @@ static .vscode/ token.txt resources/swcharacters.json +resources/destinyPoints.txt diff --git a/Gwendolyn.py b/Gwendolyn.py index 88d3e62..2685357 100644 --- a/Gwendolyn.py +++ b/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","")