{"action":"opened","issue":{"url":"https://api.github.com/repos/BlueEyesHF/RandomIcon/issues/1","repository_url":"https://api.github.com/repos/BlueEyesHF/RandomIcon","labels_url":"https://api.github.com/repos/BlueEyesHF/RandomIcon/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/BlueEyesHF/RandomIcon/issues/1/comments","events_url":"https://api.github.com/repos/BlueEyesHF/RandomIcon/issues/1/events","html_url":"https://github.com/BlueEyesHF/RandomIcon/issues/1","id":156192881,"number":1,"title":"Icon Random","user":{"login":"BlueEyesHF","id":19524004,"avatar_url":"https://avatars.githubusercontent.com/u/19524004?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueEyesHF","html_url":"https://github.com/BlueEyesHF","followers_url":"https://api.github.com/users/BlueEyesHF/followers","following_url":"https://api.github.com/users/BlueEyesHF/following{/other_user}","gists_url":"https://api.github.com/users/BlueEyesHF/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueEyesHF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueEyesHF/subscriptions","organizations_url":"https://api.github.com/users/BlueEyesHF/orgs","repos_url":"https://api.github.com/users/BlueEyesHF/repos","events_url":"https://api.github.com/users/BlueEyesHF/events{/privacy}","received_events_url":"https://api.github.com/users/BlueEyesHF/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-23T03:16:40Z","updated_at":"2016-05-23T03:16:40Z","closed_at":null,"body":"using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Net;\r\nusing System.Text;\r\nusing System.Text.RegularExpressions;\r\nusing System.Threading.Tasks;\r\n\r\n    class Icon\r\n    {\r\n        private void changeico()\r\n        {\r\n            List<string> icon = new List<string>();\r\n            char[] lettre = \"AZERTYUIOPQSDFGHJKLMWXCVBN?1234567890azertyuiopqsdfghjklmwxcvbn\".ToArray();\r\n            string req = new WebClient().DownloadString(\"https://www.iconfinder.com/search/?q=\" + lettre[new Random().Next(0, lettre.Length)] + \"&price=free&style=ico\");\r\n            MatchCollection matches = Regex.Matches(req, \"href=\\\"/icons/([0-9]+)\", RegexOptions.Multiline);\r\n            foreach (Match match in matches)\r\n            {\r\n                foreach (Capture capture in match.Captures)\r\n                {\r\n                    icon.Add(capture.Value);\r\n                }\r\n            }\r\n            new WebClient().DownloadFile(\"https://www.iconfinder.com\" + icon[new Random().Next(0, icon.Count - 1)].Replace(\"href=\\\"\", \"\") + \"/download/ico\", \"Icon.ico\");\r\n        }\r\n    }\r\n\r\n"}}
{"actor":{"display_login":"BlueEyesHF"}}