davidmann4 / ogar-feeder-bot

feeder bot for ogar servers
MIT License
92 stars 46 forks source link

i got fb bots fix i search a restart bot script function #524

Open Wartoz opened 8 years ago

Wartoz commented 8 years ago

i got already a kill bots function and i tried the leaked code but it doesn't work for me i search to add restart bot function can someone help me ? my skype iTwiGXDev http://i.imgur.com/dak4zVO.png

i added in my userscript

function emitRestart() {
    socket.emit("cmd", {
        "name": "restart"
    })
}

and

case 83: emitRestart(); break;

in my feeder.js i got this

socket.on('cmd', function(data) { console.log(data); if (data.name == "split") { for (bot in bots) { bots[bot].client.split(); } } else if (data.name == 'change_mode') { config.botMode = config.botMode == 'blind' ? 'default' : 'blind'; } else if (data.name == "eject") { for (bot in bots) { bots[bot].client.eject(); } } else if (data.name == "connect_server") { if (data.ip == null) { return; } if (data.ip == "") { return; } for (bot in bots) { bots[bot].client.disconnect(); } bots = {}; game_server_ip = data.ip; console.log("client requested bots on: " + game_server_ip); setTimeout(function() { startFeederBotOnProxies(); }, 1000); } else if(data.name == "reconnect_server") { reconnect = true; if (data.ip == null) { return; } if (data.ip == "") { return; } for (bot in bots) { bots[bot].client.disconnect(); } bots = {}; game_server_ip = data.ip; console.log("client requested bots on: " + game_server_ip); } }); when i press S it send to my console server.js: { name: 'restart' }

but the bots don't restart ...

ghost commented 8 years ago

wghy do you need restart instead of that edit the client so that bots stay connected like ovh

alezboyy commented 8 years ago

you need bat file for restart , my skipe alezboyy ;)

ghost commented 8 years ago

The restart function is not the FB bots fix

Wartoz commented 8 years ago

i know happyrocketwheel but i want a restart bot function without bat file

ghost commented 8 years ago

i have restart when you u press u but its totally better a new coded script than ogar feeder

Wartoz commented 8 years ago

kurama129 go skype : iTwiGXDev

ghost commented 8 years ago

you accept my request

im mew

Wartoz commented 8 years ago

i don't see your request delete and re request

Wartoz commented 8 years ago

what's your skype name put it and delete the post

ghost commented 8 years ago

sent

Wartoz commented 8 years ago

i don't see it what's your skype name i add you

ghost commented 8 years ago

ᗰᗴᗯ MEW

ghost commented 8 years ago

hmmm wartoz you there

anonymousxxx02 commented 8 years ago

@kurama129 do you have code for bots to stay connected????

anonymousxxx02 commented 8 years ago

@Wartoz can you share your fb script with me