Botflag & Tmpdir

This commit is contained in:
Flummi 2016-08-12 14:12:44 +02:00
parent cc55e93c65
commit 77341ec405
2 changed files with 11 additions and 3 deletions

0
b/.empty Normal file
View File

View File

@ -20,6 +20,7 @@ cfg.server.forEach((e,i,a)=>{
bot.on('motd', (e) => {
console.log("motd von "+e.network+" erhalten");
bot.write('MODE f0ck +B', e.network, (c)=>{}); // Botflag
//if(g_server[e.network].channels.length > 0) {
// bot.join( JSON.parse( g_server[e.network].channels ) );
//}
@ -30,10 +31,17 @@ bot.on('message', (e) => {
if(e.channel.getName().toString() == "#f0ck") {
/*var u = "f0ck";
bot.whois(u, e.network, (m)=>{ });
setTimeout(() => {
var user = bot.getUser(u, e.network);
e.reply(user);
}, 2000);*/
if(orig.match(/(https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi)) {
var tmp = orig.match(/(https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi);
e.reply(tmp);
console.log(tmp);
}
}