Require wtfdbfile to be in config

This commit is contained in:
Joscha 2018-09-03 20:38:45 +00:00
parent 7deb3c9d5e
commit 102b3da887

2
wtf.py
View file

@ -212,7 +212,7 @@ def main(configfile):
nick = config.get("general", "nick")
cookiefile = config.get("general", "cookiefile", fallback=None)
wtfdbfile = config.get("general", "wtfdbfile", fallback=None)
wtfdbfile = config.get("general", "wtfdbfile")
bot = WtfBot(nick, wtfdbfile, cookiefile=cookiefile)
for room, password in config.items("rooms"):