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

View file

@ -1,7 +1,17 @@
import enum
import os
import telethon
import pgbotlib.dbstuff
class Paths(enum.Enum):
CONFDIR = '/etc/pgbot'
CONFIG = os.path.join(CONFDIR, 'pgbot.yml')
TOKENS = os.path.join(CONFDIR, 'tokens.yml')
SCHEDULE = os.path.join(CONFDIR, '/sched.yml')
class NameGenerator:
def __init__(self, config: dict, db: pgbotlib.dbstuff.DBConn) -> None:
self.db = db