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 |