configs and defaults

This commit is contained in:
Von Random 2024-10-23 14:26:09 +03:00
parent f7d9afbd43
commit abe38388b6
7 changed files with 17 additions and 3 deletions

2
pgbot
View file

@ -15,7 +15,7 @@ import pgbotlib.response
def init(args: list) -> tuple:
conf_path = args[0] if args else 'config.yml'
conf_path = args[0] if args else pgbotlib.misc.Paths.CONFIG
try:
with open(conf_path, 'r', encoding='utf-8') as data:
config = yaml.safe_load(data.read())