[autoloads]
module = 1
eval = 1
+
+[trivia]
+jsonpath = /bla/foo/bar/modules/contrib/trivia/trivia.json.example
+con = twitter consumer
+con_sec = twitter consumer secret
+token = twitter token
+token_sec = twitter token secret
+
class TriviaState(object):
def __init__(self, questionfile, parent=None, pointvote=False):
self.parent = parent
- self.questionfile = questionfile
+ self.questionfile = self.getbot().parent.cfg.get('trivia', 'jsonpath')
self.db = json.load(open(questionfile, "r"))
self.chan = self.db['chan']
self.curq = None