configs and defaults
This commit is contained in:
parent
f7d9afbd43
commit
abe38388b6
7 changed files with 17 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue