Wooster Scripting for Fun & Profit

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!

Screen Shot 2012 04 09 at 6.34.32 PM

Screen Shot 2012 04 10 at 2.38.57 PM

so-hiring
Thomas Petr

Written by Thomas Petr

Comments

Subscribe for updates

New Call-to-action