Botflag & Tmpdir
This commit is contained in:
parent
cc55e93c65
commit
77341ec405
10
src/main.js
10
src/main.js
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user