示例#1
0
def ask_question(ws, question):
    index = 1
    questions = Quizz.all_question()
    ws.send(new_message(questions['q_text'], "C02LLV4HS"))
    while index < 5:
        ws.send(new_message('{} - {}'.format(index, questions['q_options_{}'.format(index)]), "C02LLV4HS"))
        index = index + 1
    return questions['q_correct_option']
示例#2
0
 def do_highscore(self, arg):
     Quizz.highscore()
示例#3
0
 def do_start(self, arg):
     quizz = Quizz(questions)
     quizz.start()
     quizz.results()
     quizz.correction()
示例#4
0
 def do_highscore(self, arg):
     Quizz.highscore()
示例#5
0
 def do_start(self, arg):
     quizz = Quizz(questions)
     quizz.start()
     quizz.results()
     quizz.correction()