modified: src/main.js

This commit is contained in:
Flummi 2016-08-14 00:18:26 +02:00
parent c9ec376a88
commit b026e89ff8

View File

@ -34,19 +34,19 @@ bot.on('message', (e) => {
if(orig.match(/(https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi)) {
var tmp = orig.match(/(https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi);
tmp.forEach((entry,i,a) => {
tmp.forEach((entry,i,a) => {
dl(entry, "./b/test.png", (cb) => {
e.reply(cb);
});
});
});
});
}
else if(orig.match(/^\.test/)) {
var tmp = getUser(e.user.getNick(), e.network);
setTimeout(()=>{
e.reply(tmp);
}, 2000);
}
setTimeout(()=>{
e.reply(tmp);
}, 2000);
}
}
});