0.3.0 • Published 11 years ago

hubot-trivia v0.3.0

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

hubot-trivia

A trivia script for Hubot.

!trivia # start game
!trivia help # see commands
!hint # show hint
!end # manual game end (debug only)

Installation

  1. Edit package.json and add hubot-trivia to the dependencies section. Example:
```javascript    
"dependencies": {
  "hubot-trivia": ">= 0.3.0",
  ...
}
```   
    
  1. Add "hubot-trivia" to your external-scripts.json. Example:

    ["hubot-trivia"]
  2. Supply a question database and assign it to @dbfile. This version expects the following table structure:

    table: questions fields: category text, title text

    table: answers fields: id integer, answer text

    Each row in questions has a unique rowid. The answers table contains one or more accepted answers to each question, with id matching the question's rowid.

0.3.0

11 years ago