Created
February 25, 2012 15:24
-
-
Save Gohan/1909063 to your computer and use it in GitHub Desktop.
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
# hello hubot, 回音体演示 | |
fs = require 'fs' | |
module.exports = (robot) -> | |
robot.respond /(回音体) (.*)/i, (msg) -> | |
@output = ['主人, 回音体就来啊~'] | |
@origin = msg.match[2] | |
for i in [[email protected]] | |
@output.push @origin.substring i | |
msg.send @output.join('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment