slack-game-bot

0.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i slack-game-bot

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • manaten