Skip to content

Instantly share code, notes, and snippets.

@bhuga
Created December 5, 2016 20:38
Show Gist options
  • Save bhuga/ccff28efcf45e85dba729c3a2fcf3fec to your computer and use it in GitHub Desktop.
Save bhuga/ccff28efcf45e85dba729c3a2fcf3fec to your computer and use it in GitHub Desktop.
# Description:
# Words of wisdom from @pengwynn
#
# Commands:
# hubot wynn me
# hubot wynnage me
# hubot wynning
wynnsdom = [
"You'll find that most touchdowns are actually scored by utility infielders."
"We've just got to buckle down and get the puck through the uprights."
"You can't win if you keep giving yourself penalties."
"We've got to make sure every one of our customers hits a home run."
"I've got to hop on a call.",
"Did we get any closer on Encyclopedia Brown and the Case of the Redis Time Spent Spikes?",
"Sorry was dealing with a snake in the front yard.",
"So... Got anything else on your mind?",
]
wynnages = [
"http://wynnnetherland.com/img/linux-format-interview.5076.jpg",
"https://pbs.twimg.com/profile_images/528797956/face_400x400.png",
"http://blog.teamtreehouse.com/wp-content/uploads/2011/06/wynn.jpg"
]
module.exports = (robot) ->
robot.respond /@?(peng)?wynn me$/, (msg) ->
msg.send "https://github.com/pengwynn.png"
msg.send msg.random wynnsdom
robot.respond /(W|w)ynning$/, (msg) ->
msg.send "https://github.com/pengwynn.png"
msg.send msg.random wynnsdom
robot.respond /wynnage me$/, (msg) ->
msg.send msg.random wynnages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment