Mrs Doyle is a tool to solve a problem which has plagued offices for centuries, 'Whose turn is it to make the tea?'
Now usually it's down to the newest member of the team, or perhaps somebody that nobody really likes, but here everybody is equal. It is Mrs Doyle's responsibility to stay in touch with everybody throughout the day to make sure that they are sufficiently hydrated. As soon as one person hints (however subtly) that they may be in need of a beverage, Mrs Doyle asks the whole office whether they might be persuaded to have a cup of tea.
Once she has surveyed everybody in the office about their imminent desire to imbibe, she fairly and equitably appoints one of the tea drinking cohort and delegates to them the responsibility of providing for their fellow consumers. Her ways are mysterious and oftentimes people get the impression that they are being victimised in some way, but over time they come to find that Mrs Doyle really does know best. What's more it adds a touch of adrenaline into an otherwise sedentary pursuit. It really is quite a rush not being chosen!
Download the code:
git clone git@github.com:emlyn/MrsDoyle.git
Copy the example config file to edit the login and password and any other settings you want to change:
cd MrsDoyle
cp example-config.dat config.dat
<editor> config.dat
Make sure you have mongoDB running locally, or edit the config file to point it to another machine.
If you don't have it already, install Leiningen.
Start her up!
lein run
The first run will take a while as all the dependencies have to be downloaded, but the next times should be faster. Once she has been successfully deployed, go to your google talk client (or the chat window in your gmail) and add
You should now be able to talk to her, and if you mention tea, she will ask everyone who is online whether they want tea. They then have 120 seconds to answer yes or no, after which Mrs Doyle will select somebody at random who has to make the tea (weighted for fairness towards people who have drunk more than they've made). They will receive a list of all the people they have to brew for.
Obviously this is just a bit of fun and so there are no real licensing terms, but it would be nice to know if you do make use of it in your office. If you add any cool functionality and are in a sharing mood, that would be great too!
I'd absolutely love it if you let me know when this app gets used! Heck, I might even fix issues/take feature requests if I'm feeling kindly.