From 17dcdbcf1c6f5f258382ac4f0b71fc3db416b4e9 Mon Sep 17 00:00:00 2001 From: MallocNull Date: Sun, 19 Oct 2014 16:21:14 -0500 Subject: [PATCH] eblectic coogaglue get ebola --- bot/bot/Chat.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bot/bot/Chat.cs b/bot/bot/Chat.cs index 86f49f3..2ad856b 100644 --- a/bot/bot/Chat.cs +++ b/bot/bot/Chat.cs @@ -17,7 +17,7 @@ namespace bot { static int currentMessage; public static void reloadContext(FirefoxDriver d) { - Console.Writeline("reloading context"); + Console.WriteLine("reloading context"); while(true) { try { List chatdata = d.FindElement(By.Id("chatList")).FindElements(By.TagName("div")).ToList(); @@ -26,10 +26,13 @@ namespace bot { if(Int32.Parse(we.GetAttribute("id").Substring(11)) > currentMessage) currentMessage = Int32.Parse(we.GetAttribute("id").Substring(11)); } + Console.WriteLine("got here"); break; - } catch(Exception shoehorn) {} + } catch(Exception shoehorn) { + Console.WriteLine(shoehorn.Message); + } } - Console.Writeline("reloading context complete"); + Console.WriteLine("reloading context complete"); if(d.FindElement(By.Id("audioButton")).GetAttribute("class").ToLower() == "button") d.FindElement(By.Id("audioButton")).Click(); }