hubot-forecast-schedule
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "hubot-forecast-schedule", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A hubot script for showing Forecast schedules", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -45,3 +45,3 @@ // Description | ||
} | ||
_.map(lines, msg.send); | ||
msg.send(lines.join('\n')); | ||
}); | ||
@@ -55,3 +55,3 @@ }); | ||
} | ||
_.map(lines, msg.send); | ||
msg.send(lines.join('\n')); | ||
}); | ||
@@ -69,3 +69,3 @@ }); | ||
robot.respond(/show ((\d+) day |)(schedule|forecast)(| for (.*))$/, function(msg) { | ||
var days = match[2] ? parseInt(match[2], 10) : 1; | ||
var days = msg.match[2] ? parseInt(msg.match[2], 10) : 1; | ||
var term = msg.match[5] || ''; | ||
@@ -82,3 +82,3 @@ | ||
} | ||
_.map(lines, msg.send); | ||
msg.send(lines.join('\n')); | ||
}); | ||
@@ -115,3 +115,3 @@ }); | ||
if (!project.archived) { | ||
lines.push(project.name); | ||
lines.push('\t' + project.name); | ||
} | ||
@@ -118,0 +118,0 @@ }); |
10857