hubot-trivia-game
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.3
    0
    • latest
  • 1.0.5
    1
    • beta

Version History

Package Sidebar

Install

npm i hubot-trivia-game

Weekly Downloads

4

Version

2.0.3

License

MIT

Unpacked Size

31.9 kB

Total Files

22

Last publish

Collaborators

  • yincrash