Skip to content

Instantly share code, notes, and snippets.

@horie1024
Created October 14, 2015 02:12
Show Gist options
  • Save horie1024/84e74c7930827a762019 to your computer and use it in GitHub Desktop.
Save horie1024/84e74c7930827a762019 to your computer and use it in GitHub Desktop.
module.exports = (robot) ->
robot.catchAll (msg) ->
matches = msg.message.text.match(/@vasilybot\s*(.*)/)
if matches == null or matches.length == 0
return
runArn = matches[1]
msg.send 'ok, start watching run.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment