This commit is contained in:
Flummi 2016-09-10 17:55:07 +02:00
parent a886d46064
commit 235fd353c9

View File

@ -34,10 +34,10 @@ function Websrv(tbot, tsql, tlib) {
req.on('end', () => {
console.log(body);
//var eventname = body.event_name;
//var autor = body.user_name;
//var commit = body.commits[body.commits[total_commits_count]-1].message;
//bot.log( eventname + ' from ' + autor + ' ('+commit+')' );
var eventname = body.event_name;
var autor = body.user_name;
var commit = body.commits[body.commits[total_commits_count]-1].message;
bot.log( eventname + ' from ' + autor + ' ('+commit+')' );
});
res.writeHead(200, { 'Content-Type': 'text/html' });
res.end('muh', 'utf-8');