Created
April 24, 2015 02:51
-
-
Save ybenjo/c7a683ef5a2c811ec67c 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
// Generated by CoffeeScript 1.9.2 | |
(function() { | |
module.exports = function(robot) { | |
return robot.hear(/mecab (.*)/i, function(msg) { | |
var MeCab, mecab, ret, text; | |
text = msg.match[1]; | |
MeCab = new require('mecab-async'); | |
mecab = new MeCab(); | |
ret = mecab.parseSync(text); | |
return msg.send(text); | |
}); | |
}; | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment