move defaults to the separate module

This commit is contained in:
Von Random 2024-10-23 14:35:36 +03:00
parent abe38388b6
commit df3a990614
4 changed files with 6 additions and 13 deletions

View file

@ -1,17 +1,7 @@
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