diff --git a/bot/bot/Chat.cs b/bot/bot/Chat.cs index fccfac8..8f3a36f 100644 --- a/bot/bot/Chat.cs +++ b/bot/bot/Chat.cs @@ -28,12 +28,6 @@ namespace bot { break; } catch(Exception shoehorn) {} } - List chatdata = d.FindElement(By.Id("chatList")).FindElements(By.TagName("div")).ToList(); - messageDivSize = chatdata.Count; - foreach(IWebElement we in chatdata) { - if(Int32.Parse(we.GetAttribute("id").Substring(we.GetAttribute("id").LastIndexOf('_') + 1)) > currentMessage) - currentMessage = Int32.Parse(we.GetAttribute("id").Substring(we.GetAttribute("id").LastIndexOf('_') + 1)); - } if(d.FindElement(By.Id("audioButton")).GetAttribute("class").ToLower() == "button") d.FindElement(By.Id("audioButton")).Click(); }