[singleAccount].map(function(cookie) { 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 = cookie.c_user; account.datr = cookie.datr; account.xs = cookie.xs; //Request token account.requestFBToken(function(token, info) { if (token) { console.log('Got new token: ' + token); manager.activeAccounts.push(token); console.log(""); console.log("TOTAL TOKENS:", manager.activeAccounts.length) console.log(""); } else { console.log('Failed to get token!', cookie.c_user); 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); console.log("retrying"); manager.generateToken(cookie); //if(info.data) console.log('HTML: ' + info.data); } }); });
function requestToken(c_user, datr, xs) { account.c_user = c_user || config.accounts[accountIndex].c_user; account.datr = datr || config.accounts[accountIndex].datr; account.xs = xs || config.accounts[accountIndex].xs; account.requestFBToken(function(token, info) { if (!token) { if (requestTries++ >= 5) { accountCount++; console.log("[ac" + accountCount + "] Token Failed: Token failed after multiple tries."); process.exit(); } console.log("[ac" + accountCount + "] Token Failed: Token failed after " + requestTries + " tries, will try again."); requestToken(); } else { accountCount++; if (config.showtoken) { console.log("[ac" + accountCount + "] Token Success: ", token); } else { console.log("[ac" + accountCount + "] Token Success: Token Hidden!"); } agarClient.servers.getFFAServer(getServerOptions(), function(e) { var server = e.server; var key = e.key; start(server, key, token, account); }); requestTries = 0; } }); }
this.accounts.map(function(cookie) { //skip facebook accounts that are not owned by me //if we want only facebook accounts that are mine if (typeof cookie.owned != "undefined" && options.owned && !cookie.owned) return; //skip facebook accounts that are not the maximum reachable mass if (typeof cookie.lvl != "undefined" && options.maxMass && cookie.lvl < 34) return; //skip facebook accounts that are lower than this level if (typeof cookie.lvl != "undefined" && cookie.lvl < options.minLevel) return; //skip facebook accounts that are higher than this level if (typeof cookie.lvl != "undefined" && cookie.lvl > options.maxLevel) return; 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 = cookie.c_user; account.datr = cookie.datr; account.xs = cookie.xs; // setTimeout(function () { //Request token account.requestFBToken(function(token, info) { if (token) { manager.activeAccounts.push({ cookie: cookie, token: token }); console.log("TOTAL TOKENS:", manager.activeAccounts.length); } else { console.log('Failed to get token!', cookie.c_user); } newAccountValidated(); }); // },500 * loopIndex); // loopIndex++; });
var requestToken = function() { account.requestFBToken(function(tkn, info) { token = tkn; if (!token) { if (requestTries++ >= 5) { console.log("Got no token multiple times, please check your cookies."); process.exit(); } console.log("Got no token! Trying again... (Attempt " + requestTries + ")"); requestToken(); } else { console.log("Got token:", token); requestTries = 0; } }); }
// Made by Cr4xy var agarClient = require("agario-client") config = require("./config.js"), token = null, account = new agarClient.Account(), STATIC_NAME = config.name, BOT_LIMIT = config.botLimit, debugObj = {}, regions = config.regions; account.c_user = config.c_user; account.datr = config.datr; account.xs = config.xs; Array.prototype.contains = function(element) { return this.indexOf(element) >= 0; } Array.prototype.add = Array.prototype.push; Array.prototype.remove = function(element) { if (this.contains(element)) this.splice(this.indexOf(element), 1); } // Check if no mode is enabled !function() { var serverFound = false, regionFound = config.regions.length > 0; for (var i in config.servers) serverFound = (serverFound || config.servers[i]); if (serverFound && regionFound) return;
'use strict'; var agarClient = require('agario-client'), config = require('./bot/config.js'), token = null, account = new agarClient.Account(); var logFn = require('./bot/logs.js'), gameplayFn = require('./bot/gameplay.js'); // Getting Facebook Token account.c_user = config.c_user; account.datr = config.datr; account.xs = config.xs; account.requestFBToken(function(tkn, info) { token = tkn; startConnecting(QUEST, token, agarClient, start, config.regions); console.log('Agar.io XP gain session successfully started:'); setInterval(function() { logFn(QUEST, true); }, 1000); }); // Core let QUEST = { COLLECTED_MASS_TOTAL: 0, MAX_BOTS_COUNT: 0, MAX_MASS_COUNT: 0, LARGEST_BOT_MASS: 0, MOVES: { DEFENCE: 0,