node package manager

slack-game-bot

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.