Skip to content

Commit

Permalink
no more vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
jbalogh committed Oct 17, 2011
1 parent d0b43df commit e533521
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pushbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,21 @@ pushbot.on('message', function(from, to, message) {

function handle(channel, msg) {
if (msg.event == 'BEGIN') {
pushbot.say(channel, format('listen up, {who} is pushing zamboni {zamboni} ' +
'and vendor {vendor}!', msg));
pushbot.say(channel, format('oh wow, {who} is pushing zamboni {zamboni} ', msg));
// If we push origin/master the logfile is name origin.master.
logWatcher.start(msg.zamboni.replace('/', '.'));
request(revisionURL, function(err, response, body) {
pushbot.say(channel, format(compareURL, body, msg.zamboni));
});
} else if (msg.event == 'PUSH') {
pushbot.say(channel, format('the push is now going to the webheads!! ' +
'({zamboni}/{vendor} {who})', msg));
'({zamboni} {who})', msg));
} else if (msg.event == 'DONE') {
pushbot.say(channel, format('{who} pushed zamboni {zamboni} and ' +
'vendor {vendor}!!!', msg));
pushbot.say(channel, format('{who} pushed zamboni {zamboni} and ', msg));
logWatcher.stop();
} else if (msg.event == 'FAIL') {
pushbot.say(channel, format('something terrible happened. check the logs ' +
'({zamboni}/{vendor} {who})'));
'({zamboni} {who})'));
logWatcher.stop();
}
}
Expand Down

0 comments on commit e533521

Please sign in to comment.