0.3.0 • Published 12 years ago
hubot-trivia v0.3.0
hubot-trivia
A trivia script for Hubot.
!trivia # start game
!trivia help # see commands
!hint # show hint
!end # manual game end (debug only)Installation
- Edit
package.jsonand addhubot-triviato thedependenciessection. Example:
```javascript
"dependencies": {
"hubot-trivia": ">= 0.3.0",
...
}
```
Add "hubot-trivia" to your
external-scripts.json. Example:["hubot-trivia"]Supply a question database and assign it to @dbfile. This version expects the following table structure:
table: questionsfields: category text, title texttable: answersfields: id integer, answer textEach row in
questionshas a uniquerowid. Theanswerstable contains one or more accepted answers to each question, withidmatching the question'srowid.
0.3.0
12 years ago