davidmann4 / ogar-feeder-bot

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

How i can add facebook bots?? #338

Open capeh opened 8 years ago

capeh commented 8 years ago

plz

Nick8fr32 commented 8 years ago

it is pretty hard becouse u need to add tokens to ur feeder so every bot get a token and token only last for about 2 hour so u also need to make a auto token genaretor its hard but i am finally done with my code i dont share sry

ghost commented 8 years ago

Not hard

hassanila commented 8 years ago

Pff easy... LVL 1 NEEDED IN JS

Wartoz commented 8 years ago

//auth_token request example

var AgarioClient = require('../agario-client.js'); //Use next line in your scripts //var AgarioClient = require('agario-client'); //Use this in your scripts

var account = new AgarioClient.Account();

//Login through facebook on http://agar.io/ and copy cookies c_user,datr,xs from http://www.facebook.com/ here account.c_user = '1000xxxxxx795'; account.datr = 'q0F5VlxxxxxxxxxxXEJDC'; account.xs = '200:OPXxxxxxxxMw:2:1450787324:-1';

//Request token account.requestFBToken(function(token, info) { if(token) { console.log('Got new token: ' + token); console.log('Now you can set it in client.auth_token and connect'); console.log('Token will expire in ' + ( account.token_expire-(+new Date) ) + 'ms'); }else{ console.log('Failed to get token!'); if(info.error) console.log('Request error: ' + info.error); if(info.res && info.res.statusCode) console.log('HTTP code: ' + info.res.statusCode); if(info.res && info.res.headers && info.res.headers.location) console.log('Redirect: ' + info.res.headers.location); if(info.data) console.log('HTML: ' + info.data); } });

Petterholm commented 8 years ago

Where to put? And is it possible with multiple?

Sendt fra min iPhone

Den 26. mar. 2016 kl. 20.27 skrev Hassan notifications@github.com:

Pff easy... LVL 1 IN JS

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

Petterholm commented 8 years ago

Please someone

Sendt fra min iPhone

Den 26. mar. 2016 kl. 21.47 skrev Wartoz notifications@github.com:

//auth_token request example

var AgarioClient = require('../agario-client.js'); //Use next line in your scripts //var AgarioClient = require('agario-client'); //Use this in your scripts

var account = new AgarioClient.Account();

//Login through facebook on http://agar.io/ and copy cookies c_user,datr,xs from http://www.facebook.com/ here account.c_user = '1000xxxxxx795'; account.datr = 'q0F5VlxxxxxxxxxxXEJDC'; account.xs = '200:OPXxxxxxxxMw:2:1450787324:-1';

//Request token account.requestFBToken(function(token, info) { if(token) { console.log('Got new token: ' + token); console.log('Now you can set it in client.auth_token and connect'); console.log('Token will expire in ' + ( account.token_expire-(+new Date) ) + 'ms'); }else{ console.log('Failed to get token!'); if(info.error) console.log('Request error: ' + info.error); if(info.res && info.res.statusCode) console.log('HTTP code: ' + info.res.statusCode); if(info.res && info.res.headers && info.res.headers.location) console.log('Redirect: ' + info.res.headers.location); if(info.data) console.log('HTML: ' + info.data); } });

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub