Skip to content

Instantly share code, notes, and snippets.

@keita03301995
Last active October 30, 2015 13:56
Show Gist options
  • Save keita03301995/e9205d59324d9a14668a to your computer and use it in GitHub Desktop.
Save keita03301995/e9205d59324d9a14668a to your computer and use it in GitHub Desktop.
module.exports = (robot) ->
robot.hear /煽り (.*)/i, (msg) ->
num = (Math.floor(Math.random() * 100 ) % 3) + 1
if num == 1
msg.send "#{msg.match[1]}、そろそろ気付きな?髪の薄さに"
else if num == 2
msg.send "#{msg.match[1]}、脳みそがスッキリしてそうでい>いですね"
else
msg.send "#{msg.match[1]}、のけ"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment