文字数カウント

eastasianwidth = require 'eastasianwidth'
module.exports = (robot) ->
  robot.hear /NOC (.*)$/i, (msg) ->
    message = msg.match[1].replace /^\s+|\s+$/g, ''
    return until message.length
    length = eastasianwidth.length(message) / 2
    msg.send length + "文字です"