Skip to content

Instantly share code, notes, and snippets.

@suisho
Last active August 29, 2015 14:21
Show Gist options
  • Save suisho/764ff37dd3676d5dc89e to your computer and use it in GitHub Desktop.
Save suisho/764ff37dd3676d5dc89e to your computer and use it in GitHub Desktop.
hubotのscriptをbabelで書きたいので"babel/register"を使う ref: http://qiita.com/suisho/items/af6de81c5d845da69c88
export default function(robot){
robot.hear(/badger/i, (res) => {
res.send("Badgers? BADGERS? WE DON'T NEED NO STINKIN BADGERS")
})
}
require("babel/register")
module.exports = (robot) ->
require("../lib/babel-script")(robot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment