hubot-trivia-game-french
v2.2.5
Published
French translation of the original hubot-trivia-game from Michael Yin
Downloads
30
Readme
Hubot Trivia Game Plugin
A trivia bot.
Commands
- !trivia - ask a question
- !skip - skip the current question
- !answer or !a - provide an answer
- !score - check the score of the player
- !scores or !score all - check the score of all players
- !h or !hint - take a hint
- !reset - reset players scores
Installation
- In your hubot installation's path:
npm install hubot-trivia-game-french --save
- edit
external-scripts.json
and addhubot-trivia-game-french
to the JSON array. - if the file doesn't exist, create it with
["hubot-trivia-game-french"]
- add a
questions.json
file tores/
folder which you may also need to create
Question DB
The question database is a file containing a JSON array of questions with the following properties:
{
"answer": "Pizza",
"category": "FOOD",
"question": "Crust, sauce, and toppings!",
"value": "$400"
},
One example of such a question set can be found here.
If the answer is a number is must still be "as a string" in the json file. Eg :
{
"answer": "60",
"category": "CATEGORY",
"question": "How many minutes in an hour ?",
"value": "$400"
},
The file needs to be stored in <hubot_root>/res/questions.json