README
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);
For more information, read below samples.
samples
Janken
Slot
Soukoban
Maze
LICENSE
MIT.