add interval

This commit is contained in:
Thorsten
2016-01-31 19:29:58 +01:00
parent 82cdedff49
commit 50eb36e876
2 changed files with 5 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ def rate(quizcfg, response, user):
# }
def start_random_question(quizcfg):
def start_random_question(quizcfg, interval):
stop(quizcfg)
qa = get_random_question(quizcfg)
@@ -123,7 +123,7 @@ def start_random_question(quizcfg):
'msg': ['Q: {}'.format(qa[0])],
'event': {
'command': (end_question, ([quizcfg],)),
'time': time.time() + 15
'time': time.time() + interval
}
}