Basic Bot setup
This commit is contained in:
commit
2ca6717165
3 changed files with 21 additions and 0 deletions
11
utils/config.py
Normal file
11
utils/config.py
Normal 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]
|
Loading…
Add table
Add a link
Reference in a new issue