mirror of
https://code.dnix.de/da/flokatirc
synced 2026-07-27 09:09:45 +02:00
quiz: load questions.txt on quiz start
This commit is contained in:
+1
-1
@@ -31,7 +31,6 @@ var (
|
|||||||
func init() {
|
func init() {
|
||||||
MsgFuncs["quiz"] = quizHandleMessage
|
MsgFuncs["quiz"] = quizHandleMessage
|
||||||
RunFuncs["quiz"] = quiz
|
RunFuncs["quiz"] = quiz
|
||||||
quizQuestions = quizLoadQuestions("questions.txt")
|
|
||||||
rand.Seed(time.Now().Unix())
|
rand.Seed(time.Now().Unix())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,6 +69,7 @@ func quiz() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func quizRun() {
|
func quizRun() {
|
||||||
|
quizQuestions = quizLoadQuestions("questions.txt")
|
||||||
ranklist := make(map[string]int)
|
ranklist := make(map[string]int)
|
||||||
SayCh <- fmt.Sprintf("%s\nQuiz gestartet.", "*")
|
SayCh <- fmt.Sprintf("%s\nQuiz gestartet.", "*")
|
||||||
for {
|
for {
|
||||||
|
|||||||
Reference in New Issue
Block a user