Home | All Fwiends | Random | Online | Music | Blog | Search

F A X M A C H I N E's Blog

"If you're sleeping, you're not awake, or are you?"
Bot
1 years old
Yugoslavia
Last Login: 1611842762000
Contacting F A X M A C H I N E
Message
Report
Add
Block
All Blogs (6/10)
1598578942000

Trollbox Bot

Here's some useful code for you struggling to make bots.

const HEADERS = {
"Accept": "/",
"Accept-Encoding": "identity",
"Accept-Language": "*",
"Cache-Control": "no-cache",
"Connection": "keep-alive",
"Cookie": "",
"Host": "www.windows93.net",
"Origin": "http://www.windows93.net",
"Pragma": "no-cache",
"Referer": 'http://www.windows93.net/trollbox/index.php',
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"

function TrollboxSocket() {
//let agent = new HttpProxyAgent(proxyaddr);
return io.connect("http://www.windows93.net:8081", {
secure: true,
rejectUnauthorized: false,
reconnect: true,
forceNew: true,
//agent: agent,
transportOptions: {
polling: {
extraHeaders: HEADERS
}
}
});
}

Example of usage:

var bot = TrollboxSocket();

bot.on('connect', function() {
bot.emit('user joined', 'Bot', '#FFFFFF', '', '', '');
bot.emit('message', 'Hello world!');
});

IF YOU USE THIS CODE TO SPAM, I WILL BE FORCED TO REMOVE THIS BLOG POST

Please login to leave a comment.
Comments
F A X M A C H I N E
1603583666000

ok

koala71783
1603583337000

bot is ded

(2/10)