# tapptic-trivia-game

> Custom Tapptic trivia bot for Hubot

Latest version **1.0.4** (published 2018-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install tapptic-trivia-game
pnpm add tapptic-trivia-game
yarn add tapptic-trivia-game
bun add tapptic-trivia-game
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-01-17 |
| First published | 2018-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lucas Adam |
| Maintainers | lucasadam |
| Keywords | hubot, hubot-scripts, trivia, game |

## Links

- npm: https://www.npmjs.com/package/tapptic-trivia-game
- Repository: https://github.com/LucasAdam/hubot-trivia-game
- Homepage: https://github.com/LucasAdam/hubot-trivia-game#readme
- Issues: https://github.com/LucasAdam/hubot-trivia-game/issues
- npm.io page: https://npm.io/package/tapptic-trivia-game

## Dependencies (3)

- [cheerio](https://npm.io/package/cheerio.md) 0.17.0
- [fuzzyset.js](https://npm.io/package/fuzzyset.js.md) 0.0.1
- [coffee-script](https://npm.io/package/coffee-script.md) ~1.6

## Recent versions

- 1.0.4 (latest) — 2018-01-17
- 1.0.3 — 2018-01-17
- 1.0.2 — 2018-01-17
- 1.0.1 — 2018-01-17
- 1.0.0 — 2018-01-17

## README

# Hubot Trivia Game Plugin

A trivia bot.

## Commands

*   **!t** or **!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
*   **!reset** - reset scores

## Installation

* In your hubot installation's path:
* `npm install tapptic-trivia-game --save`
* edit `external-scripts.json` and add `tapptic-trivia-game` to the JSON array.
* if the file doesn't exist, create it with `["tapptic-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](http://www.reddit.com/r/datasets/comments/1uyd0t/200000_jeopardy_questions_in_a_json_file).

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

---
_Source: https://npm.io/package/tapptic-trivia-game · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
