You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know if it is possible to load questions from a data file. I don’t know if it would be easier than the current way .. is this something interesting to have ? … maybe in yml format ?
The text was updated successfully, but these errors were encountered:
You can construct custom questions from any set of data using the BooleanQuestion and MultipleChoiceQuestion constructors. You will have to load and parse the data on your end.
constcustomQuestions=[newBooleanQuestion().setValue("discord-trivia is awesome!").setCategory("My epic category").setDifficulty('easy').setCorrectAnswer('true'),newMultipleChoiceQuestion().setValue("What's the best pizza topping?").setCategory("food").setDifficulty('medium').setCorrectAnswer("Chicken feet").setIncorrectAnswers(["Pepperoni","Sausage","Olives"])// Add more custom questions here...];
Hello
I would like to know if it is possible to load questions from a data file. I don’t know if it would be easier than the current way .. is this something interesting to have ? … maybe in yml format ?
The text was updated successfully, but these errors were encountered: