ltcla-hubot-trivia-game
Learn To Code LA trivia bot
Last updated 3 years ago by johnmarinelli .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ltcla-hubot-trivia-game 
SYNC missed versions from official npm registry.

Hubot Trivia Game Plugin

A trivia bot.

Commands

  • !trivia - ask a question
  • !skip - skip the current question
  • !answer <answer> or !a <answer> - provide an answer
  • !score <player> - 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

Current Tags

  • 1.1.6                                ...           latest (3 years ago)

9 Versions

  • 1.1.6                                ...           3 years ago
  • 1.1.5                                ...           4 years ago
  • 1.1.4                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 10
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |