# slack-game-bot

> Simple slack bot framework for interactive gaming.

Latest version **0.0.1** (published 2016-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install slack-game-bot
pnpm add slack-game-bot
yarn add slack-game-bot
bun add slack-game-bot
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-12-23 |
| First published | 2016-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12 |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | manaten |
| Maintainers | manaten |
| Keywords | slack, game, bot |

## Links

- npm: https://www.npmjs.com/package/slack-game-bot
- Repository: https://github.com/manaten/slack-game-bot
- Homepage: https://github.com/manaten/slack-game-bot#readme
- Issues: https://github.com/manaten/slack-game-bot/issues
- npm.io page: https://npm.io/package/slack-game-bot

## Dependencies (6)

- [bunyan](https://npm.io/package/bunyan.md) ^1.8.5
- [lodash](https://npm.io/package/lodash.md) ^4.17.2
- [@slack/client](https://npm.io/package/@slack/client.md) ^3.7.0
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.20.0
- [es6-promisify](https://npm.io/package/es6-promisify.md) ^5.0.0
- [bunyan-prettystream](https://npm.io/package/bunyan-prettystream.md) ^0.1.3

## Recent versions

- 0.0.1 (latest) — 2016-12-23

## README

# slack-game-bot
A bot framework for slack gaming.

# usage

```js
const {Game, GameBot} = require('slack-game-bot');

class MyGame extends Game {
  getButtons() {
    return ['one', 'two', 'three'];
  }

  async initialize() {
    await this.draw('press button!');
  }

  async onPushButton(reactionType) {
    await this.draw(reactionType);
  }
}

new GameBot({
  myGame: MyGame,
}).run(process.env.SLACK_TOKEN);
```

![mygame.gif (320×240)](http://manaten.net/wp-content/uploads/2016/12/mygame.gif)

For more information, read below samples.

# samples

## Janken

![janken.gif (320×240)](http://manaten.net/wp-content/uploads/2016/12/janken.gif)

## Slot

![slot.gif (320×240)](http://manaten.net/wp-content/uploads/2016/12/slot.gif)

## Soukoban

![soukoban.gif (320×320)](http://manaten.net/wp-content/uploads/2016/12/soukoban.gif)

## Maze

![maze.gif (320×320)](http://manaten.net/wp-content/uploads/2016/12/maze.gif)

# LICENSE

MIT.

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