htg

hubot-trivia-game

Trivia plugin for Hubot

Showing:

Popularity

Downloads/wk

0

GitHub Stars

4

Maintenance

Last Commit

4yrs ago

Contributors

7

Package

Dependencies

3

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

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

Installation

  • In your hubot installation's path:
  • npm install hubot-trivia-game --save
  • edit external-scripts.json and add hubot-trivia-game to the JSON array.
  • if the file doesn't exist, create it with ["hubot-trivia-game"]
  • add a questions.json file to res/ 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.

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial