# hubot-quizbot

> Simple quiz bot for hubot

Latest version **0.0.0** (published 2017-03-07) · 0 weekly downloads

## Install

```sh
npm install hubot-quizbot
pnpm add hubot-quizbot
yarn add hubot-quizbot
bun add hubot-quizbot
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2017-03-07 |
| First published | 2017-03-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10.x |
| Dependencies | 16 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | kevinf@pronto.net |
| Maintainers | kzf |

## Links

- npm: https://www.npmjs.com/package/hubot-quizbot
- npm.io page: https://npm.io/package/hubot-quizbot

## Dependencies (16)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [hubot](https://npm.io/package/hubot.md) ^2.19.0
- [natural](https://npm.io/package/natural.md) ^0.4.0
- [hubot-help](https://npm.io/package/hubot-help.md) ^0.2.0
- [hubot-maps](https://npm.io/package/hubot-maps.md) 0.0.2
- [underscore](https://npm.io/package/underscore.md) ^1.8.3
- [hubot-pugme](https://npm.io/package/hubot-pugme.md) ^0.1.0
- [hubot-rules](https://npm.io/package/hubot-rules.md) ^0.1.1
- [hubot-shipit](https://npm.io/package/hubot-shipit.md) ^0.2.0
- [hubot-scripts](https://npm.io/package/hubot-scripts.md) ^2.17.2
- [hubot-rocketchat](https://npm.io/package/hubot-rocketchat.md) ^1.0.7
- [hubot-diagnostics](https://npm.io/package/hubot-diagnostics.md) 0.0.1
- [hubot-redis-brain](https://npm.io/package/hubot-redis-brain.md) 0.0.3
- [hubot-google-images](https://npm.io/package/hubot-google-images.md) ^0.2.6
- [hubot-google-translate](https://npm.io/package/hubot-google-translate.md) ^0.2.0
- [hubot-heroku-keepalive](https://npm.io/package/hubot-heroku-keepalive.md) ^1.0.2

## Recent versions

- 0.0.0 (latest) — 2017-03-07

## README

# hubot-quizbot

A hubot script for running a quiz with questions sourced from a simple JSON file.

The repository is set up for use with the _hubot-rocketchat_ docker image but you could just as easily take the contents of the _/scripts_ directory and use it in another hubot environment.

You will need a shared volume with the docker container to store the scores and questions. The scores are persisted as a simple JSON file in the shared volume.

## Setup:

Run an `npm install` in the scripts directory to install dependencies.

You can use `dockerlocal.sh` to start up a local docker instance, just change the configuration settings in _dockerlocal.sh.example_.

## Environment Variables:

* **QUIZBOT_SCORES_FILE** - Location of the scores file within the docker container.
* **QUIZBOT_QUESTIONS_FILE** - Location of the questions file within the docker container.
* **QUIZBOT_BANG_COMMANDS** - Set to true if you would like to address quizbot using !scores, !ask, rather than 'quizbot scores', 'quizbot ask' and so on.
* **QUIZBOT_FORFEIT_TIME** - Time (in seconds) before a question will automatically reveal the answer.

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