verbose output if debug is activated
This commit is contained in:
parent
822b72d560
commit
42b84c134c
|
@ -9,8 +9,10 @@ module.exports = (lib) => {
|
|||
func: (e) => {
|
||||
exec('cd ../../ & git pull', (error, stdout) => {
|
||||
if(error === null) {
|
||||
e.reply( 'git pull suxxessfully.' );
|
||||
//e.reply(stdout);
|
||||
if(!lib.debug)
|
||||
e.reply('git pull suxxessfully.');
|
||||
else
|
||||
lib.log(stdout);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
@ -46,8 +46,12 @@ function Websrv(tlib) {
|
|||
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) => {
|
||||
if(error === null)
|
||||
lib.bot.send( lib.cfg.debugchannel, 'git pull suxxessfully.', 'n0xy' );
|
||||
if(error === null) {
|
||||
if(!lib.debug)
|
||||
lib.bot.send(lib.cfg.debugchannel, 'git pull suxxessfully.', 'n0xy');
|
||||
else
|
||||
lib.log(stdout);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user