Blog - HubSpot Product Team

Wooster Scripting for Fun & Profit

Written by Thomas Petr | Apr 17, 2012

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).

These bros want a chat bot...

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?

#JFDI

David Cancel, our fearless leader Chief Product Officer, is known for his poignant, humorous, and often quotable hashtags:

So we figured, let's harness this corpus for some laughs.

A man's gotta have a code.

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.

Hello World

After deploying to our new Wooster script, we're in serendipitous hashtag heaven!