{"action":"created","issue":{"url":"https://api.github.com/repos/mattcbaker/dotnetcore-slackbot/issues/12","repository_url":"https://api.github.com/repos/mattcbaker/dotnetcore-slackbot","labels_url":"https://api.github.com/repos/mattcbaker/dotnetcore-slackbot/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/mattcbaker/dotnetcore-slackbot/issues/12/comments","events_url":"https://api.github.com/repos/mattcbaker/dotnetcore-slackbot/issues/12/events","html_url":"https://github.com/mattcbaker/dotnetcore-slackbot/issues/12","id":278014419,"number":12,"title":"Have an optional paramter for calling Connect on Bot initialization","user":{"login":"awright18","id":1014386,"avatar_url":"https://avatars2.githubusercontent.com/u/1014386?v=4","gravatar_id":"","url":"https://api.github.com/users/awright18","html_url":"https://github.com/awright18","followers_url":"https://api.github.com/users/awright18/followers","following_url":"https://api.github.com/users/awright18/following{/other_user}","gists_url":"https://api.github.com/users/awright18/gists{/gist_id}","starred_url":"https://api.github.com/users/awright18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awright18/subscriptions","organizations_url":"https://api.github.com/users/awright18/orgs","repos_url":"https://api.github.com/users/awright18/repos","events_url":"https://api.github.com/users/awright18/events{/privacy}","received_events_url":"https://api.github.com/users/awright18/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-30T06:43:27Z","updated_at":"2017-12-17T18:20:32Z","closed_at":"2017-12-17T18:20:32Z","author_association":"NONE","body":"This would allow me to create a bot before connecting to the service.  I would like to do some configuration and dependency injection in my app before actually starting (Connecting) the bot. \r\n\r\nProposed change\r\n\r\n```\r\npublic class Bot \r\n{\r\n     public Bot(string token, string username, bool connect = true) \r\n     {\r\n          //existing initialization \r\n          if(connect)\r\n          {\r\n              Connect();\r\n          }\r\n     }\r\n    public void Start()\r\n    {\r\n        Connect():\r\n    }\r\n}\r\n```\r\n\r\nExample call \r\n```\r\nvar shouldConnectNow = false;\r\nvar bot = new Bot(botName, botToken, shouldConnectNow); \r\n//do other things \r\nbot.Start(); \r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/mattcbaker/dotnetcore-slackbot/issues/comments/352274818","html_url":"https://github.com/mattcbaker/dotnetcore-slackbot/issues/12#issuecomment-352274818","issue_url":"https://api.github.com/repos/mattcbaker/dotnetcore-slackbot/issues/12","id":352274818,"user":{"login":"mattcbaker","id":8901122,"avatar_url":"https://avatars1.githubusercontent.com/u/8901122?v=4","gravatar_id":"","url":"https://api.github.com/users/mattcbaker","html_url":"https://github.com/mattcbaker","followers_url":"https://api.github.com/users/mattcbaker/followers","following_url":"https://api.github.com/users/mattcbaker/following{/other_user}","gists_url":"https://api.github.com/users/mattcbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcbaker/subscriptions","organizations_url":"https://api.github.com/users/mattcbaker/orgs","repos_url":"https://api.github.com/users/mattcbaker/repos","events_url":"https://api.github.com/users/mattcbaker/events{/privacy}","received_events_url":"https://api.github.com/users/mattcbaker/received_events","type":"User","site_admin":false},"created_at":"2017-12-17T18:20:32Z","updated_at":"2017-12-17T18:20:32Z","author_association":"OWNER","body":"Sounds good, closing this issue."}}
{"actor":{"display_login":"mattcbaker"}}