dblock / slack-gamebot

Ping pong, chess, pool and other games bot for Slack.
MIT License
129 stars 103 forks source link

One bot, multiple games, many channels #87

Open dblock opened 8 years ago

dblock commented 8 years ago

Currently you can only have a single game for a team, but it looks like everybody uses the bot exclusively in a single channel. For every new game we support we have to create a slack integration, which is at the very least annoying. The only thing it gives you is the name of the bot, which can just be @gamebot with aliases.

Introduce a concept of a game per team, allow teams to have as many games as they want.

#pong> bot games

You have no games, try `bot game pong`.
#pong> bot game pong

Game on, playing *pong* in the #pong channel!
#pong> bot game chess

Game on, playing *chess* in the #pong channel!
You can go back to playing #pong with `bot game pong` or just create a new channel for it.
#pong> bot games

Playing *pong* in #pong and #ping-pong.
Playing *chess* in #chess.

If you issue a command in a new channel that gamebot has never seen, it could ask you to choose a game or just choose the default.

#chess> bot leaderboard

It's our first time in #chess. Create a new game with `bot game chess`.

It's our first time in #chess. Choose one of your existing games, `chess`, `pong` or `tic-tac-toe` or create a new game with `bot game <name>`.
dblock commented 4 months ago

I've been working on a fork of Gamebot in https://github.com/dblock/slack-gamebot2 that supports separate leaderboards per channel and uses an upgraded version of the Slack platform with granular permission scopes. It will be replacing the gamebot on playplay.io. Install it from https://gamebot2.playplay.io/.