Code Monkey home page Code Monkey logo

ogar-feeder-bot's Introduction

agario-feeder-bot

skype group: https://join.skype.com/eQuN52iQVzZg

common questions: https://github.com/davidmann4/ogar-feeder-bot/issues?utf8=%E2%9C%93&q=label%3Aquestion+

tutorial video: https://www.youtube.com/watch?v=FVNNo93ZVGg

if you use this bot make sure to star the repo!

Installation guide

  • git clone this repo
  • cd to the repo e.g. (cd agario-feeder-bot/)
  • npm install
  • copy config.sample.js to config.js and adjust values
    • In the config.js, you must assign the UUID to the one generated by the client script you install bellow, you can find this in "Inspect Element's" console.
    • For proxy.txt, you must use proxies to connect the bots, the usual max limit for one IP is 5 clients/bots.
  • copy proxy.sample.txt to proxy.txt and adjust values
  • install the agario-feeder-bot.user.js userscript in your browser (Chrome: http://goo.gl/WALo4B Firefox: http://goo.gl/G5XhWx)
  • install all libs with npm
    • npm install socket.io-client
  • node feeder.js
  • Launch chrome/firefox and go to agar.io to start using your bots.

Want to help out?

  • checkout issues for tasks
  • write better readme.md
  • tell other people about this repo (marketing)
  • get more developers to contribute code
  • generate backlinks for SEO to this repo (post link to this repo on other sites)
  • favourite this repo

Disclaimer: Botting is against the TOS - so please only use it on your own ogar server: https://github.com/OgarProject/Ogar

ogar-feeder-bot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ogar-feeder-bot's Issues

Some problem with npm...

Hello ! Can you send me a zip with your node_module folder and agar minimap builded ? I have some problem with npm and msgpack...

thanks.........

Add Facebook Settings for 150 starting mass

Auth token

To login into your account you need to request token. You can check example in examples/auth_token.js
First create new AgarioClient.Account

var account = new AgarioClient.Account();

Then you need to login through facebook on http://agar.io then go to http://www.facebook.com/ and get cookies c_user,datr,xs.
Here is list of properties of account:

  • account.c_user - set to cookie "c_user" from http://www.facebook.com/
  • account.datr - set to cookie "datr" from http://www.facebook.com/
  • account.xs - set to cookie "xs" from http://www.facebook.com/
  • account.agent - agent for connection. Tests shows that you can request token from any IP and then use it on any IP so you don't need SOCKS/Proxy.
  • account.debug - set 1 to show warnings, otherwise 0. Default: 1
  • account.token_provider - will contain 1 for facebook, 2 for google. But currently there is no token requesters for google. requestFBToken() will set it to 1
  • account.token_expire - contains timestamp in milliseconds when token will expire. Tokens are valid for 1-2 hours. If (+new Date)>account.token_expire then you need to request new token and use it in new connection to agar.

Then you call

account.requestFBToken(function(token, info) {
    //If you have `token` then you can set it to `client.auth_token` 
    // and `client.connect()` to agar server
});

If token is null, then something went wrong. Check info which can contain:

  • info.error - Error of connection error
  • info.res - response's http.IncomingMessage object
  • info.data - content of page

Help installing

If someone could make a youtube video on installation that would be great! XD

Assist with bots not connecting

Hey,

I really like this project and I want to use it! I can't seem to get them to connect with proxy or without. Possible for you to help me on Skype at makan_dey ?

Thanks,
Makan D

Problem on new user script

When I refreshing a browse or running Feeder.js I get the same message in Server log:
"User connected with id:40fd"

i try change port / download new all files... / use: NOPROXY

[agar@vmi60725 server]$ node server.js
Starting server on port 4444
User connected with id:undefined
User connected with id:40fd
User connected with id:40fd
User connected with id:40fd
User connected with id:40fd
User connected with id:40fd
[agar@vmi60725 agario-feeder-bot]$ node feeder.js
agario-feeder-bot started! Join a game in Chrome with the Userscript installed.
startup
server-booted-up

(here the problem - stop logs)

[agar@vmi60725 agario-feeder-bot]$ cat config.js | grep 4444
config.feederServer = "ws://5.189.145.117:4444";
config.serverPort = 4444;

From user script:

var socket = io.connect('ws://5.189.145.117:4444');
last_transmited_game_server = null;

feeder.js:201 TypeError: Cannot set property 'x' of null

Last update have bug sometime:

        candidate_ball.x = valid_player_pos["x"];
                         ^

TypeError: Cannot set property 'x' of null
at Object.FeederBot.recalculateTarget (/home/admin/agar/agario-feeder-bot/feeder.js:201:30)
at null. (/home/admin/agar/agario-feeder-bot/feeder.js:63:58)
at wrapper as _onTimeout
at Timer.listOnTimeout (timers.js:119:15)

Restart program after crash, or make it stop crashing.

I'm using about 100 proxies on average. Because some of them don't work, they crash the program and I have to run node feeder.js again. Please fix this as I want to leave a bot on playing with these feeder bots overnight. Atleast make the program relauch after it has crashed!

Attempt a reconnection

I have noticed that when I try to join a Party and it ends up being full, not all of the bots join in. Is it possible to set some sort of option so that every 5 seconds it checks if that server has an open spot and push a bot into it?

Restart crashed program

I sometimes use a lot of proxies that don't work and I don't have time to check then. It would be really good if the crashing problem was solved. If not, can someone please give me a file like a bash file to restart the program immediately after it crashes?

Auto detect agario party ip address

I don't want to continue changing the agario server ip each time I join a new server. Please add an auto detector. I know that run start shows up change, u should add it to node feeder.

Can Someone Make a Tutorial

I really Don't understand the Instructions if Someone can help us To Get Bots we will be Really thankful for him......

Need it Badly......

Tutorial

You need to make a video tutorial to make sure people do not mess up the installment.

Make bot network calculate seed value of Ogar scramble

Ogar uses a protection algorithm called scramble. If we have enough data we should able to calculate the seed values c.borderLeft, c.borderRight , c.borderTop , c.borderBottom

 this.scrambleX = Math.floor((1<<15) * Math.random());
 this.scrambleY = Math.floor((1<<15) * Math.random());

this.socket.sendPacket(new Packet.SetBorder(
                        c.borderLeft + this.socket.playerTracker.scrambleX,
                        c.borderRight + this.socket.playerTracker.scrambleX,
                        c.borderTop + this.socket.playerTracker.scrambleY,
                        c.borderBottom + this.socket.playerTracker.scrambleY
                ));

Userscript issues

I was testing last version and it's working much better, those new features are great.
Good job, well done 👍

I have found some issues while running the userscript:

  • FB login isn't working
  • Sometimes I see a blank page flashing while playing

Console output:

Uncaught TypeError: c.MC.updateServerVersion is not a function
Uncaught TypeError: c.MC.setProfilePicture is not a function
Uncaught TypeError: c.MC.doLoginWithFB is not a function

Also have some issue with feeder.js #61

Connecting more than 5 Bots

After connecting 5 Bots, the 6th says: 'Connection failed with reason: Error: connect ECONNREFUSED 151.xx.xx.xx:xxxx

Set Max amount of bots

I want to use like 8000 proxies but i want to set max bots to 100. I don't want to delete proxies. And some proxies may not work so it might crash. Please fix it so it just skips the broken proxies and doesn't make it crash.

MSGPACK error with agar-mini-map

So ermm, tried running this on multiple servers yet get the same error. Any idea?

var packet = msgpack.unpack(buffer);
^

TypeError: First argument must be a Buffer
at TypeError (native)
at WebSocket.ws.onmessage (/home/x/agario-client/AgarClones/custom.js:267:34)
at WebSocket.onMessage (/home/x/node_modules/ws/lib/WebSocket.js:418:14)
at emitTwo (events.js:87:13)
at WebSocket.emit (events.js:172:7)
at Receiver.onbinary (/home/x/node_modules/ws/lib/WebSocket.js:823:10)
at /home/x/node_modules/ws/lib/Receiver.js:537:18
at /home/x/node_modules/ws/lib/Receiver.js:361:7
at /home/x/node_modules/ws/lib/PerMessageDeflate.js:247:5
at afterWrite (_stream_writable.js:346:3)

Using multiple proxies in one instance does not work

There's some problem when you try load more than one proxy.

I have tried all the proxy one by one and works fine, then try the whole list and...
Failed to request server (error=REQUEST_ERROR, error_source=Error: connect EHOSTUNREACH)

I assume that the format of the proxy list is IP:PORT line break IP:PORT...

Why can I only connect 5 bots?

My friend successfully installed the bots but he said he just got 4 bots can sombodee explain that how to make more bots i have proxies and how i can use them

Spawning with different proxies

There seems to be an issue for spawning bots with several proxies in one file (proxy.txt)
so for example
proxy1
proxy2
proxy3

Running the feeder.js logs 15 bots attempting to connect, however only 5 first manage to connect.
the rest 10 bots log connection error:
Bot 7: connection error: Error: unexpected server response (504)
Connection failed with reason: Error: unexpected server response (504)

All three proxies work.
I guess it's a simple issue with reading the next line and using that IP for spawning the next bots? I assume all the bots attempt to spawn using the first IP, instead of assigning each set of 5 bots unique IP from the list.

Add Logistic-algorithm which uses the bot hive mind.

research:

  • Could use some ant related algorithms.
  • Maybe there is an algorithm for transporting goods.

planB:
percentage value to become a transporter if a transporter is N pixels away. mass gets transported to the nearest transporter. Transporter deliver mass to the player.

Make single file for server

Hi, it would be nice if there were only one server file that contained everything. And have the instructions more indepth

Facebook authentication has been patched.

I'm making this so no more duplicates pop up. Facebook authentication has been patched by Moneyclip. If you have Facebook authentication turned on then it will only spawn one bot and disconnect all other bots.

There is another issue I think I am the only one experiencing, but none of the proxies spawn bots anymore. Don't know how to solve that one yet or just might be my issue. I'll update this when I figured it out.

config.js Help

Please explain the possible settings?

//this agar ip:port ?
config.forceConnectToIp = false;
config.forceIp = "151.80.98.52:1507"

//what is forcekey? Party code?
config.forceKey = "EVZ74";

Another question

node feeder.js "GAME_ID"
GAMEֹ_ID = PARTY CODE?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.