Created
June 11, 2015 16:29
-
-
Save unbalanced/c458e86251974452a5a6 to your computer and use it in GitHub Desktop.
wishing.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (robot) -> | |
robot.hear /(?=home|i\'m|feel|little|bit).*sick/i, (msg) -> | |
wishings = ["get well soon!!", "feel better!", "we will miss you today", "please don't die", | |
"drink a lot of fluids", "have some tea, stay in bed", "wear a sweater next time"] | |
wish = msg.random wishings | |
msg.send "hey @#{msg.message.user.name}, #{wish}" | |
robot.hear /(?=work(ing)?|stay(ing)?).*home/i, (msg) -> | |
wishings = ["We will miss you!", "You didn't mention if you're sick, if you are, feel better!", "thanks for letting everybody know"] | |
wish = msg.random wishings | |
msg.send "hey @#{msg.message.user.name}, #{wish}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment