Our office Slack bot for tea and coffee

Who’s turn it was to make the tea was becoming a contentious issue in the office.. and so BevBot was created. BevBot, short for Beverage Bot, lets the team opt-in to a tea or coffee – with the person making the drinks chosen at random at the end of the time limit.

Using coderstephen/slack-client as a base, and building a generic bot framework on top (that I hope to open source in the coming months), BevBot can accept requests for tea or coffee, and manage the round of orders.

The general flow looks like this:
BevBot example

We’ve even plotted the results in ChartBlocks, so we can see who’s drinking the most.