A bot framework for slack gaming.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.babelrc
.editorconfig
.eslintrc
.gitignore
.npmignore
README.md
package.json
yarn.lock

README.md

slack-game-bot

A bot framework for slack gaming.

usage

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)

For more information, read below samples.

sample games

Janken

janken.gif (320×240)

Slot

slot.gif (320×240)

Soukoban

soukoban.gif (320×320)

Maze

maze.gif (320×320)

LICENSE

MIT.