Fix dreadful type error

This commit is contained in:
rnhmjoj 2015-10-01 01:23:52 +02:00
parent ccbfded8ea
commit 65108cffea

View File

@ -32,7 +32,7 @@ module.exports = (robot) ->
peer: x[2].replace chat + ' ', '' peer: x[2].replace chat + ' ', ''
text: x[3].trim() text: x[3].trim()
run_command "history #{chat} #{size}", (lines) -> run_command "history #{chat} #{size}", (lines) ->
callback (parse_line i.match regex for i in lines.split '\n') callback (parse_line i.match regex for i in lines)
robot.respond /doge(?: (\d+))?/, (res) -> robot.respond /doge(?: (\d+))?/, (res) ->
n = res.match[1] || 10 n = res.match[1] || 10