yincrash / hubot-trivia-game

Trivia plugin for Hubot
MIT License
5 stars 18 forks source link

Hubot Trivia Game Plugin

A trivia bot.

Commands

Installation

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.

The file needs to be stored in <hubot_root>/res/questions.json

Settings

Some settings can be set via .env config for your Hubot instance.

# The minimum unique skip requests required before the question is actually skipped.
# This prevents any single person from continually skipping questions alone.
# By default, no minimum.
MIN_SKIP_REQUESTS=0