Created
May 8, 2015 05:20
-
-
Save 1syo/292ded6537f98d24538e to your computer and use it in GitHub Desktop.
httpで受け取った値をbrainしてsendする
This file contains 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
# Description: | |
# spike | |
module.exports = (robot) -> | |
robot.router.get "/hubot/spike/:room", (req, res) -> | |
robot.brain.set('spike', req.params.room) | |
res.end "Done" | |
robot.respond /spike/i, (msg) -> | |
msg.send robot.brain.get('spike') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment