Merge branch 'f0ckdev' into 'master'

F0ckdev



See merge request !14
This commit is contained in:
Flummi 2016-10-26 13:49:40 +00:00
commit 8351f8a282
4 changed files with 333 additions and 330 deletions

View File

@ -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);
}
});
},

View File

@ -138,6 +138,7 @@ module.exports = (lib) => {
(err, res, data) => {
if(!err) {
var type = res.headers['content-type'];
lib.log('MimeType: '+type);
var length = res.headers['content-length'];
if(cfg.allowedMimes.hasOwnProperty(type)) {
//if(length <= cfg.maxFileSize) {

View File

@ -5,11 +5,7 @@ module.exports = (lib) => {
level: 0,
active: 1,
func: (e) => {
if(!(user = e.message.match(/^\!user( +@(.*))?/i)[2]))
user = e.user.getNick();
else
user = user.trim();
lib.bot.whois(user, e.network, (err, data) => {
lib.bot.whois(!(user = e.message.match(/^\!user( +@(.*))?/i)[2])?e.user.getNick():user.trim(), e.network, (err, data) => {
e.reply(data);
});
},

View File

@ -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);
}
});
}
}