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
F A X M A C H I N E | 1603583666000 ok |
koala71783 | 1603583337000 bot is ded |