config.py 409 B

123456789101112131415
  1. #!/usr/bin/python3
  2. from fileread import fileload
  3. import dataset
  4. DebugLVL = 442
  5. HOST = fileload('conf/host')
  6. PORT = int(fileload('conf/port'))
  7. NICK = fileload('conf/nick')
  8. REALNAME = fileload('conf/realname')
  9. SERVICES_PW = fileload('conf/pw')
  10. NETNAME = fileload('conf/net')
  11. SERVICES_HOSTMASK = fileload('conf/services')
  12. tls = fileload('conf/port') == '6697'
  13. db = dataset.connect('sqlite:///conf/database.db')