Skip to content

Instantly share code, notes, and snippets.

@gregmac
Created May 9, 2012 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregmac/2646830 to your computer and use it in GitHub Desktop.
Save gregmac/2646830 to your computer and use it in GitHub Desktop.
Hubot script for subway's sub of the day
# Subway sub of the day
#
# subway me - See today's sub of the day
module.exports = (robot) ->
#"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"
subofday = ["Oven Roasted Chicken Breast","Steak & Cheese","Subway Melt","Sweet Onion Chicken Teryaki","Turkey Breast","Tuna","Subway Club"]
robot.respond /(subway|sub of (the )?day)/i, (msg) ->
msg.reply subofday[(new Date()).getDay()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment