Created
October 14, 2015 02:12
-
-
Save horie1024/84e74c7930827a762019 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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