muh
This commit is contained in:
parent
649e4339aa
commit
2fbffc0574
|
@ -13,7 +13,7 @@ function Lib(tbot, tsql, tcfg) {
|
|||
this.bot = bot = tbot;
|
||||
this.sql = sql = tsql;
|
||||
this.cfg = cfg = tcfg;
|
||||
this.debug = debug = true;
|
||||
this.debug = debug = false;
|
||||
this.admins = [];
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ module.exports = (bot, trigger, lib) => {
|
|||
var tmp = e.message.match(/https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi); // get links
|
||||
tmp.forEach((entry,i,a) => {
|
||||
var tmpdest = uuid.v1().split('-')[0];
|
||||
if(!entry.match(/f0ck\.me/i)) {
|
||||
lib.dl(entry, "./b/"+tmpdest, (cb) => { // download item
|
||||
if(cb.status === true) {
|
||||
lib.getUser(e, (cbgu) => {
|
||||
|
@ -50,6 +51,7 @@ module.exports = (bot, trigger, lib) => {
|
|||
if(cb.type == 1)
|
||||
e.reply(cb.msg);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user