forked from an/flokati
quiz: load questions.txt on quiz start
This commit is contained in:
parent
5af0c2f07a
commit
600954764a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue