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