From 2851bd801bb092991f5f0201fd1713c12ef36bc4 Mon Sep 17 00:00:00 2001 From: JoshuaGolden Date: Sat, 22 Aug 2015 21:20:17 +0100 Subject: [PATCH] Delete bot.user.js --- bot.user.js | 1153 --------------------------------------------------- 1 file changed, 1153 deletions(-) delete mode 100644 bot.user.js diff --git a/bot.user.js b/bot.user.js deleted file mode 100644 index e63d8f7..0000000 --- a/bot.user.js +++ /dev/null @@ -1,1153 +0,0 @@ -// ==UserScript== -// @name RageBot -// @namespace RageBot -// @include http://agar.io/* -// @version 1 -// @grant none -// @editor http://youtube.com/ragemoddzz -// ==/UserScript== - -var rageBotVersion = 1337; - -//TODO: Team mode -// Detect when people are merging -// Split to catch smaller targets -// Angle based cluster code -// Better wall code -// In team mode, make allies be obstacles. - -Number.prototype.mod = function(n) { - return ((this % n) + n) % n; -}; - -Array.prototype.peek = function() { - return this[this.length - 1]; -}; - -var sha = "efde0488cc2cc176db48dd23b28a20b90314352b"; -function getLatestCommit() { - window.jQuery.ajax({ - url: "https://api.github.com/repos/rmzmodshop/smart-bot/git/refs/heads/master", - cache: false, - dataType: "jsonp" - }).done(function(data) { - console.dir(data["data"]) - console.log("hmm: " + data["data"]["object"]["sha"]); - sha = data["data"]["object"]["sha"]; - - $.get('https://raw.githubusercontent.com/rmzmodshop/smart-bot/master/bot.user.js?' + Math.floor((Math.random() * 1000000) + 1), function(data) { - var latestVersion = data.replace(/(\r\n|\n|\r)/gm,""); - latestVersion = latestVersion.substring(latestVersion.indexOf("// @version")+11,latestVersion.indexOf("// @grant")); - - latestVersion = parseFloat(latestVersion + 0.0000); - var myVersion = parseFloat(rageBotVersion + 0.0000); - - if(latestVersion > myVersion) - { - update("rageBot", "bot.user.js", "https://github.com/rmzmodshop/smart-bot/blob/" + sha + "/bot.user.js/"); - } - console.log('Current bot.user.js Version: ' + myVersion + " on Github: " + latestVersion); - }); - - }).fail(function() {}); -} -getLatestCommit(); - -console.log("Running Rage Bot!"); -(function(f, g) { - var splitDistance = 710; - console.log("Rage Bot!"); - - if (f.botList == null) { - f.botList = []; - g('#locationUnknown').append(g('