Pull file operations out to a files.py
This commit is contained in:
parent
96fb77f71f
commit
ed2375386b
6 changed files with 27 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
|||
"""Very simple config loading library"""
|
||||
from schema import Schema, And, Use
|
||||
import matching
|
||||
import files
|
||||
|
||||
FILE = "config.json"
|
||||
|
||||
|
@ -24,7 +24,7 @@ class Config():
|
|||
|
||||
def load() -> Config:
|
||||
"""Load the config and validate it"""
|
||||
config = matching.load(FILE)
|
||||
config = files.load(FILE)
|
||||
Schema(
|
||||
{
|
||||
# Discord bot token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue