Gohan
2/25/2012 - 3:24 PM

huiyin.coffee

# hello hubot, 回音体演示
fs = require 'fs'
module.exports = (robot) ->
  robot.respond /(回音体) (.*)/i, (msg) ->
    @output = ['主人, 回音体就来啊~']
    @origin = msg.match[2]
    for i in [0..@origin.length-1] 
        @output.push @origin.substring i
    msg.send @output.join('\n')