diff --git a/.gitignore b/.gitignore index 72b414a..f3e20fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ */ -config.json -savefile.json +*.json diff --git a/autotoot.py b/autotoot.py index d06c031..1b7bb7b 100644 --- a/autotoot.py +++ b/autotoot.py @@ -20,14 +20,12 @@ def main(): # get settings if applicable neuter = False wait = 5 - try: + if "autotoot" in config: c = config["autotoot"] if "neuter" in c: neuter = c["neuter"].lower() == "true" if "wait" in c: wait = int(c["wait"]) - except: - pass print(neuter, wait) # make bots masto = bot(config, neuter=neuter)