util/config.py

15 lines
409 B
Python
Raw Normal View History

2021-12-19 09:05:42 +00:00
#!/usr/bin/python3
from fileread import fileload
2022-01-09 09:16:29 +00:00
import dataset
2021-12-19 09:05:42 +00:00
DebugLVL = 442
HOST = fileload('conf/host')
PORT = int(fileload('conf/port'))
NICK = fileload('conf/nick')
REALNAME = fileload('conf/realname')
SERVICES_PW = fileload('conf/pw')
2022-01-09 09:16:29 +00:00
NETNAME = fileload('conf/net')
SERVICES_HOSTMASK = fileload('conf/services')
tls = fileload('conf/port') == '6697'
2022-01-09 09:16:29 +00:00
db = dataset.connect('sqlite:///conf/database.db')