{"action":"created","issue":{"url":"https://api.github.com/repos/d-haxton/HaxtonBot/issues/14","repository_url":"https://api.github.com/repos/d-haxton/HaxtonBot","labels_url":"https://api.github.com/repos/d-haxton/HaxtonBot/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/d-haxton/HaxtonBot/issues/14/comments","events_url":"https://api.github.com/repos/d-haxton/HaxtonBot/issues/14/events","html_url":"https://github.com/d-haxton/HaxtonBot/issues/14","id":168036453,"number":14,"title":"Start failed","user":{"login":"sunblade","id":5159497,"avatar_url":"https://avatars.githubusercontent.com/u/5159497?v=3","gravatar_id":"","url":"https://api.github.com/users/sunblade","html_url":"https://github.com/sunblade","followers_url":"https://api.github.com/users/sunblade/followers","following_url":"https://api.github.com/users/sunblade/following{/other_user}","gists_url":"https://api.github.com/users/sunblade/gists{/gist_id}","starred_url":"https://api.github.com/users/sunblade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunblade/subscriptions","organizations_url":"https://api.github.com/users/sunblade/orgs","repos_url":"https://api.github.com/users/sunblade/repos","events_url":"https://api.github.com/users/sunblade/events{/privacy}","received_events_url":"https://api.github.com/users/sunblade/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-28T08:03:41Z","updated_at":"2016-07-29T11:24:23Z","closed_at":"2016-07-29T11:24:23Z","body":"`20160728094900 Fatal error, attempting to restart`\r\n\r\n```\r\nTask.Run(() =>\r\n            {\r\n                while (true)\r\n                {\r\n                    try\r\n                    {\r\n                        container = new Container(_ =>\r\n                                {\r\n                                    _.For<IApiBaseRpc>().Use<ApiBaseRpc>().Singleton();\r\n                                    _.For<IApiClient>().Use<ApiClient>().Singleton();\r\n                                    _.For<IApiDownload>().Use<ApiDownload>().Singleton();\r\n                                    _.For<IApiEncounter>().Use<ApiEncounter>().Singleton();\r\n                                    _.For<IApiFort>().Use<ApiFort>().Singleton();\r\n                                    _.For<IApiInventory>().Use<ApiInventory>().Singleton();\r\n                                    _.For<IApiLogin>().Use<ApiLogin>().Singleton();\r\n                                    _.For<IApiMap>().Use<ApiMap>().Singleton();\r\n                                    _.For<IApiMisc>().Use<ApiMisc>().Singleton();\r\n                                    _.For<IApiPlayer>().Use<ApiPlayer>().Singleton();\r\n\r\n                                    _.For<IPoGoBot>().Use<PoGoBot>().Singleton();\r\n                                    _.For<IPoGoInventory>().Use<PoGoInventory>().Singleton();\r\n                                    _.For<IPoGoEncounter>().Use<PoGoEncounter>().Singleton();\r\n                                    _.For<IPoGoNavigation>().Use<PoGoNavigation>().Singleton();\r\n                                    _.For<IPoGoMap>().Use<PoGoMap>().Singleton();\r\n                                    _.For<IPoGoStatistics>().Use<PoGoStatistics>().Singleton();\r\n                                    _.For<IPoGoSnipe>().Use<PoGoSnipe>().Singleton();\r\n                                    _.For<IPoGoLogin>().Use<PoGoLogin>().Singleton();\r\n                                    _.For<IPoGoFort>().Use<PoGoFort>().Singleton();\r\n\r\n                                    _.For<ISettings>().Use<Settings>().Singleton();\r\n                                    _.For<ILogicSettings>().Use<LogicSettings>().Singleton();\r\n\r\n                                    //_.Scan(s =>\r\n                                    //{\r\n                                    //    s.SingleImplementationsOfInterface();\r\n                                    //    s.AssemblyContainingType<IApiClient>();\r\n                                    //    s.WithDefaultConventions();\r\n                                    //});\r\n                                });\r\n\r\n                        var login = container.GetInstance<IPoGoLogin>();\r\n                        login.DoLogin();\r\n                        var bot = container.GetInstance<IPoGoBot>();\r\n                        var task = bot.Run();\r\n                        task.ForEach(x => x.ContinueWith(\r\n                            t => { throw new Exception(\"Main thread restarting due to lower task exception\"); }));\r\n                        Task.Run(UpdateConsole);\r\n                        _LoggedIn = true;\r\n                        Task.WaitAny(task.ToArray());\r\n                    }\r\n                    catch (Exception ex)\r\n                    {\r\n                        logger.Fatal(ex, \"Fatal error, attempting to restart\");\r\n                    }\r\n                }\r\n            });\r\n```"},"comment":{"url":"https://api.github.com/repos/d-haxton/HaxtonBot/issues/comments/236156942","html_url":"https://github.com/d-haxton/HaxtonBot/issues/14#issuecomment-236156942","issue_url":"https://api.github.com/repos/d-haxton/HaxtonBot/issues/14","id":236156942,"user":{"login":"sunblade","id":5159497,"avatar_url":"https://avatars.githubusercontent.com/u/5159497?v=3","gravatar_id":"","url":"https://api.github.com/users/sunblade","html_url":"https://github.com/sunblade","followers_url":"https://api.github.com/users/sunblade/followers","following_url":"https://api.github.com/users/sunblade/following{/other_user}","gists_url":"https://api.github.com/users/sunblade/gists{/gist_id}","starred_url":"https://api.github.com/users/sunblade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunblade/subscriptions","organizations_url":"https://api.github.com/users/sunblade/orgs","repos_url":"https://api.github.com/users/sunblade/repos","events_url":"https://api.github.com/users/sunblade/events{/privacy}","received_events_url":"https://api.github.com/users/sunblade/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T11:24:23Z","updated_at":"2016-07-29T11:24:23Z","body":"A comma instead of a dot as a decimal pointer fixed issue\r\n\r\nSOLVED"}}
{"actor":{"display_login":"sunblade"}}