Advertisement
Guest User

Untitled

a guest
May 27th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. string site = data[4];
  2. WebClient W = new WebClient();
  3. string html = W.DownloadString("http://downforeveryoneorjustme.com/" + site);
  4. int index = html.IndexOf("<div id=\"container\">");
  5. string msg = html.Substring(index, html.IndexOf("<p>",index) - index);
  6. msg = msg.Replace("\r", "").Replace("http://","").Replace("\n", "").Replace("<div id=\"container\">", "").Replace(" <a href=\"", "").Replace("\"", "").Replace("</a></span>", "").Replace(site + " class=domain>", "4").Replace(site,site+"3").Substring(6).Replace("</a>","");
  7. Write(String.Format("PRIVMSG {0} {1}", chan, "12"+msg));
  8. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement