using System; using System.Collections.Generic; using PlayerIOClient; using System.Threading; namespace UpdateDetect { class UpdateDetect { static void Main(string[] args) { new Engine(); Console.ReadLine(); } } class Engine { string currentVERSION = "2.0"; // change this to your current bot version string newVERSION; bool latestVERSION = false; bool ERROR = false; public Engine() { System.Net.WebClient WebsiteClient = new System.Net.WebClient(); try { newVERSION = WebsiteClient.DownloadString("http://pastebin.com/raw/MP5jXpVH"); // change this to your raw pastebin } catch { ERROR = true; } if (ERROR == false) { if (currentVERSION == newVERSION) { Console.WriteLine("You have the latest version, no updating needed."); latestVERSION = true; } else { Console.WriteLine("Your version is " + currentVERSION + ", while the new version is " + newVERSION + ", updating needed."); latestVERSION = false; } } else { { Console.WriteLine("Error connecting to file, check your internet connection or pastebin file."); } } if (latestVERSION == true) { Client cli; Connection con; Dictionary players = new Dictionary(); cli = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "email", "password"); con = cli.Multiplayer.CreateJoinRoom("world", "Everybodyedits217", true, null, null); con.Send("init"); Thread.Sleep(20); con.Send("init2"); } } } }