Basic Bot setup

This commit is contained in:
Robert 2020-08-11 10:26:05 +02:00
commit 2ca6717165
3 changed files with 21 additions and 0 deletions

11
utils/config.py Normal file
View file

@ -0,0 +1,11 @@
import json
config = None
with open("config.json") as file:
config = json.load(file)
if config is None:
raise "Failed to load config file"
def get(key: str) -> str:
return config[key]