Fix dreadful type error
This commit is contained in:
parent
ccbfded8ea
commit
65108cffea
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user