From 600954764af9c19bab2a9de96a36c0d7f36133c5 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Thu, 16 Jun 2016 19:50:10 +0200 Subject: [PATCH] quiz: load questions.txt on quiz start --- modules/quiz.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quiz.go b/modules/quiz.go index 3c37e70..a49d6cc 100644 --- a/modules/quiz.go +++ b/modules/quiz.go @@ -31,7 +31,6 @@ var ( func init() { MsgFuncs["quiz"] = quizHandleMessage RunFuncs["quiz"] = quiz - quizQuestions = quizLoadQuestions("questions.txt") rand.Seed(time.Now().Unix()) } @@ -70,6 +69,7 @@ func quiz() { } func quizRun() { + quizQuestions = quizLoadQuestions("questions.txt") ranklist := make(map[string]int) SayCh <- fmt.Sprintf("%s\nQuiz gestartet.", "*") for {