Skip to content

lachiemurray/MrsDoyle

 
 

Repository files navigation

What does Mrs Doyle do?

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!

Setting Up:

  • Download the code:

      git clone [email protected]: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 to your contacts.

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!

Usage tips:

  • Any mention of tea, brew, cuppa etc will start a round, so be careful what you say to her if you don't actually want tea!
  • The first time you say yes (or "please" or "sure" etc.) to a cup of tea, she will ask you how you like it. If you answer her, she will tell whoever has to make the tea how you like it. She will also remember and use this for next time too.
  • If you want to change how you take your tea, simply tell her by saying something like "yes, milk no sugar please" (the comma is the important bit) in response to her asking you whether you want a cup of tea. Again she will remember this until you tell her other wise.
  • You can also tell her how you want your tea at any point after saying yes but before the round is over.
  • Once you have said yes, there is no backing out.
  • If you are busy and do not wish to be disturbed, simply say so and she will leave you alone until you next talk to her (she may set a sulky status until you do!)
  • If you want to invite new people to take part, you can simply tell Mrs Doyle about them and she will go invite them to chat and introduce herself!
  • After she has handled a few rounds, try asking "who has drunk most?", "who has made most?" or "what are my stats?"

Finally

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.

About

A clojure tea bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published