One of my favorite things about working at HubSpot is everyone's great sense of humor. The developer chatroom chronicles most of our zany antics, and it's facilitated by our very own robotic butler, Wooster Bot (named after Bertie Wooster, and based off of GitHub's Hubot).
Wooster is pretty smart; we've taught him how to evaulate mathematical expressions, translate text between languages, kick off new builds, generate a whole slew of different meme photos, and even tell us what today's specials are at the deli across the street. Any employee can add more functionality to Wooster by writing a node.js script. What else can we do with Wooster?
David Cancel, our fearless leader Chief Product Officer, is known for his poignant, humorous, and often quotable hashtags:
.@antrod lots of books and events cause a new sucker is born every day. #FAKERZ
— David Cancel (@dcancel) April 9, 2012
Boston Startupers beware. #GeekswithGuns is back. #actlikeyouknow
— David Cancel (@dcancel) April 5, 2012
The @HubSpot sales team is making it rain like a Lil Wayne video today! #majorleagues
— David Cancel (@dcancel) March 30, 2012
So we figured, let's harness this corpus for some laughs.
We can implement this easily in CoffeeScript:
Our final implementation makes use of Redis as a backing store to minimize how often we hit the Twitter API, but this was left out to improve clarity.
After deploying to our new Wooster script, we're in serendipitous hashtag heaven!