aktueller Stand
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = (lib) => {
|
||||
name: 'parser',
|
||||
call: /https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi,
|
||||
level: 0,
|
||||
active: 0,
|
||||
active: 1,
|
||||
func: (e, userlevel) => {
|
||||
if(e.channel.getName() === lib.cfg.main.debugchannel || e.message.match(/(!|-)f0ck/i)) {
|
||||
if(!e.message.match(/(!|-)ignore/)) {
|
||||
@@ -137,7 +137,7 @@ module.exports = (lib) => {
|
||||
},
|
||||
(err, res, data) => {
|
||||
if(!err) {
|
||||
var type = res.headers['content-type'];
|
||||
var type = res.headers['content-type'].split(";")[0];
|
||||
lib.log('MimeType: '+type);
|
||||
if(lib.cfg.main.allowedMimes.hasOwnProperty(type)) {
|
||||
if( ( data.length <= lib.cfg.main.maxFileSize ) || force || ( userlevel >= 60 && data.length <= (lib.cfg.main.maxFileSize * 2) ) ) {
|
||||
@@ -208,4 +208,4 @@ module.exports = (lib) => {
|
||||
cb({ success: false, file: tmpdest, msg: 'repost motherf0cker: '+lib.cfg.main.url+'/'+cbcr });
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@@ -8,10 +8,10 @@ module.exports = (lib) => {
|
||||
active: 0,
|
||||
func: (e) => {
|
||||
lib.sql.query("select count(`id`) as anzahl from `f0ck`.`items`", (err, rows, fields) => {
|
||||
var ret = "f0ck gave "+String(rows[0].anzahl);
|
||||
var ret = "gave "+String(rows[0].anzahl);
|
||||
du('./b/', function (err, size) {
|
||||
ret += " f0cks ("+lib.formatSize(size)+")";
|
||||
e.reply(ret);
|
||||
e.replyAction(ret);
|
||||
})
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user