Update websrv.js
This commit is contained in:
parent
86d7ff7197
commit
f5ca678576
@ -33,6 +33,7 @@ function Websrv(tlib) {
|
||||
body = JSON.parse(body);
|
||||
var eventname = body.event_name;
|
||||
var autor = body.user_name;
|
||||
var branch = body.branch.split('/')[2];
|
||||
|
||||
var commit = "";
|
||||
try {
|
||||
@ -41,7 +42,7 @@ function Websrv(tlib) {
|
||||
catch(ex) {
|
||||
commit = body.commits[body.commits.length-2].message.replace('\n','').trim();
|
||||
}
|
||||
lib.bot.send( lib.cfg.debugchannel, eventname + ' from ' + autor + ' ('+commit+') in '+body.ref, 'n0xy' );
|
||||
lib.bot.send( lib.cfg.debugchannel, eventname + ' from ' + autor + ' ('+commit+') in branch '+branch, 'n0xy' );
|
||||
|
||||
if( lib.cfg.debugchannel === '#f0ck' ) {
|
||||
exec('cd ../ & git pull', (error, stdout) => {
|
||||
|
Loading…
Reference in New Issue
Block a user