0.0.1 • Published 7 years ago

slack-game-bot v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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.

samples

Janken

janken.gif (320×240)

Slot

slot.gif (320×240)

Soukoban

soukoban.gif (320×320)

Maze

maze.gif (320×320)

LICENSE

MIT.