Hubots - More than meets the eye

Hubots are those chat bots that post cat pictures or give you constant updates about your repos. Did you ever wonder how they do that, maybe you want to write one yourself to do something.