{"action":"created","comment":{"url":"https://api.github.com/repos/perthgophers/puddle/pulls/comments/88218772","pull_request_review_id":8797004,"id":88218772,"diff_hunk":"@@ -0,0 +1,116 @@\n+package messagerouter\n+\n+import (\n+\t\"bufio\"\n+\t\"encoding/json\"\n+\t\"fmt\"\n+\t\"github.com/nlopes/slack\"\n+\t\"log\"\n+\t\"os\"\n+)\n+\n+// MessageRouter does stuff with messages.\n+type MessageRouter struct {\n+\tAPI     *slack.Client\n+\tRTM     *slack.RTM\n+\ttoken   string\n+\tchannel string\n+\tgittag  string\n+\tIsDev   bool\n+}\n+\n+//Returns a new Pudddle Messagerouter","path":"messagerouter/messagerouter.go","position":22,"original_position":22,"commit_id":"c32119c03a79daf8eba8632b3c9e851ae02de1ff","original_commit_id":"c32119c03a79daf8eba8632b3c9e851ae02de1ff","user":{"login":"nii236","id":4482567,"avatar_url":"https://avatars.githubusercontent.com/u/4482567?v=3","gravatar_id":"","url":"https://api.github.com/users/nii236","html_url":"https://github.com/nii236","followers_url":"https://api.github.com/users/nii236/followers","following_url":"https://api.github.com/users/nii236/following{/other_user}","gists_url":"https://api.github.com/users/nii236/gists{/gist_id}","starred_url":"https://api.github.com/users/nii236/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nii236/subscriptions","organizations_url":"https://api.github.com/users/nii236/orgs","repos_url":"https://api.github.com/users/nii236/repos","events_url":"https://api.github.com/users/nii236/events{/privacy}","received_events_url":"https://api.github.com/users/nii236/received_events","type":"User","site_admin":false},"body":"`// New...`","created_at":"2016-11-16T11:33:13Z","updated_at":"2016-11-16T11:33:13Z","html_url":"https://github.com/perthgophers/puddle/pull/31#discussion_r88218772","pull_request_url":"https://api.github.com/repos/perthgophers/puddle/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/perthgophers/puddle/pulls/comments/88218772"},"html":{"href":"https://github.com/perthgophers/puddle/pull/31#discussion_r88218772"},"pull_request":{"href":"https://api.github.com/repos/perthgophers/puddle/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/perthgophers/puddle/pulls/31","id":93941891,"html_url":"https://github.com/perthgophers/puddle/pull/31","diff_url":"https://github.com/perthgophers/puddle/pull/31.diff","patch_url":"https://github.com/perthgophers/puddle/pull/31.patch","issue_url":"https://api.github.com/repos/perthgophers/puddle/issues/31","number":31,"state":"open","locked":false,"title":"refactor, added example test for ping","user":{"login":"AlexDunmow","id":20717847,"avatar_url":"https://avatars.githubusercontent.com/u/20717847?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDunmow","html_url":"https://github.com/AlexDunmow","followers_url":"https://api.github.com/users/AlexDunmow/followers","following_url":"https://api.github.com/users/AlexDunmow/following{/other_user}","gists_url":"https://api.github.com/users/AlexDunmow/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDunmow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDunmow/subscriptions","organizations_url":"https://api.github.com/users/AlexDunmow/orgs","repos_url":"https://api.github.com/users/AlexDunmow/repos","events_url":"https://api.github.com/users/AlexDunmow/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDunmow/received_events","type":"User","site_admin":false},"body":"streamlined commands routing > see commands.go\r\nadded init functions for each response\r\ncreated responsewriter interface\r\ncreated messagerequest struct\r\nadds ping command\r\nfixes message sending issue: https://github.com/perthgophers/puddle/issues/30","created_at":"2016-11-16T10:48:04Z","updated_at":"2016-11-16T11:37:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32421d156e8aae2c683cfd901d52003fa502ec12","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/perthgophers/puddle/pulls/31/commits","review_comments_url":"https://api.github.com/repos/perthgophers/puddle/pulls/31/comments","review_comment_url":"https://api.github.com/repos/perthgophers/puddle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/perthgophers/puddle/issues/31/comments","statuses_url":"https://api.github.com/repos/perthgophers/puddle/statuses/c32119c03a79daf8eba8632b3c9e851ae02de1ff","head":{"label":"perthgophers:feature/bugfix/refactor-responses","ref":"feature/bugfix/refactor-responses","sha":"c32119c03a79daf8eba8632b3c9e851ae02de1ff","user":{"login":"perthgophers","id":19840186,"avatar_url":"https://avatars.githubusercontent.com/u/19840186?v=3","gravatar_id":"","url":"https://api.github.com/users/perthgophers","html_url":"https://github.com/perthgophers","followers_url":"https://api.github.com/users/perthgophers/followers","following_url":"https://api.github.com/users/perthgophers/following{/other_user}","gists_url":"https://api.github.com/users/perthgophers/gists{/gist_id}","starred_url":"https://api.github.com/users/perthgophers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perthgophers/subscriptions","organizations_url":"https://api.github.com/users/perthgophers/orgs","repos_url":"https://api.github.com/users/perthgophers/repos","events_url":"https://api.github.com/users/perthgophers/events{/privacy}","received_events_url":"https://api.github.com/users/perthgophers/received_events","type":"Organization","site_admin":false},"repo":{"id":73764142,"name":"puddle","full_name":"perthgophers/puddle","owner":{"login":"perthgophers","id":19840186,"avatar_url":"https://avatars.githubusercontent.com/u/19840186?v=3","gravatar_id":"","url":"https://api.github.com/users/perthgophers","html_url":"https://github.com/perthgophers","followers_url":"https://api.github.com/users/perthgophers/followers","following_url":"https://api.github.com/users/perthgophers/following{/other_user}","gists_url":"https://api.github.com/users/perthgophers/gists{/gist_id}","starred_url":"https://api.github.com/users/perthgophers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perthgophers/subscriptions","organizations_url":"https://api.github.com/users/perthgophers/orgs","repos_url":"https://api.github.com/users/perthgophers/repos","events_url":"https://api.github.com/users/perthgophers/events{/privacy}","received_events_url":"https://api.github.com/users/perthgophers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/perthgophers/puddle","description":"The Perth Gophers Slackbot Mud Project","fork":false,"url":"https://api.github.com/repos/perthgophers/puddle","forks_url":"https://api.github.com/repos/perthgophers/puddle/forks","keys_url":"https://api.github.com/repos/perthgophers/puddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/perthgophers/puddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/perthgophers/puddle/teams","hooks_url":"https://api.github.com/repos/perthgophers/puddle/hooks","issue_events_url":"https://api.github.com/repos/perthgophers/puddle/issues/events{/number}","events_url":"https://api.github.com/repos/perthgophers/puddle/events","assignees_url":"https://api.github.com/repos/perthgophers/puddle/assignees{/user}","branches_url":"https://api.github.com/repos/perthgophers/puddle/branches{/branch}","tags_url":"https://api.github.com/repos/perthgophers/puddle/tags","blobs_url":"https://api.github.com/repos/perthgophers/puddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/perthgophers/puddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/perthgophers/puddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/perthgophers/puddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/perthgophers/puddle/statuses/{sha}","languages_url":"https://api.github.com/repos/perthgophers/puddle/languages","stargazers_url":"https://api.github.com/repos/perthgophers/puddle/stargazers","contributors_url":"https://api.github.com/repos/perthgophers/puddle/contributors","subscribers_url":"https://api.github.com/repos/perthgophers/puddle/subscribers","subscription_url":"https://api.github.com/repos/perthgophers/puddle/subscription","commits_url":"https://api.github.com/repos/perthgophers/puddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/perthgophers/puddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/perthgophers/puddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/perthgophers/puddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/perthgophers/puddle/contents/{+path}","compare_url":"https://api.github.com/repos/perthgophers/puddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/perthgophers/puddle/merges","archive_url":"https://api.github.com/repos/perthgophers/puddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/perthgophers/puddle/downloads","issues_url":"https://api.github.com/repos/perthgophers/puddle/issues{/number}","pulls_url":"https://api.github.com/repos/perthgophers/puddle/pulls{/number}","milestones_url":"https://api.github.com/repos/perthgophers/puddle/milestones{/number}","notifications_url":"https://api.github.com/repos/perthgophers/puddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/perthgophers/puddle/labels{/name}","releases_url":"https://api.github.com/repos/perthgophers/puddle/releases{/id}","deployments_url":"https://api.github.com/repos/perthgophers/puddle/deployments","created_at":"2016-11-15T01:38:01Z","updated_at":"2016-11-16T05:52:05Z","pushed_at":"2016-11-16T10:48:04Z","git_url":"git://github.com/perthgophers/puddle.git","ssh_url":"git@github.com:perthgophers/puddle.git","clone_url":"https://github.com/perthgophers/puddle.git","svn_url":"https://github.com/perthgophers/puddle","homepage":"https://perthgophers.github.io/puddle/","size":65,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"perthgophers:master","ref":"master","sha":"c895c9a2a93621e94220f0224e361c20c0cde757","user":{"login":"perthgophers","id":19840186,"avatar_url":"https://avatars.githubusercontent.com/u/19840186?v=3","gravatar_id":"","url":"https://api.github.com/users/perthgophers","html_url":"https://github.com/perthgophers","followers_url":"https://api.github.com/users/perthgophers/followers","following_url":"https://api.github.com/users/perthgophers/following{/other_user}","gists_url":"https://api.github.com/users/perthgophers/gists{/gist_id}","starred_url":"https://api.github.com/users/perthgophers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perthgophers/subscriptions","organizations_url":"https://api.github.com/users/perthgophers/orgs","repos_url":"https://api.github.com/users/perthgophers/repos","events_url":"https://api.github.com/users/perthgophers/events{/privacy}","received_events_url":"https://api.github.com/users/perthgophers/received_events","type":"Organization","site_admin":false},"repo":{"id":73764142,"name":"puddle","full_name":"perthgophers/puddle","owner":{"login":"perthgophers","id":19840186,"avatar_url":"https://avatars.githubusercontent.com/u/19840186?v=3","gravatar_id":"","url":"https://api.github.com/users/perthgophers","html_url":"https://github.com/perthgophers","followers_url":"https://api.github.com/users/perthgophers/followers","following_url":"https://api.github.com/users/perthgophers/following{/other_user}","gists_url":"https://api.github.com/users/perthgophers/gists{/gist_id}","starred_url":"https://api.github.com/users/perthgophers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perthgophers/subscriptions","organizations_url":"https://api.github.com/users/perthgophers/orgs","repos_url":"https://api.github.com/users/perthgophers/repos","events_url":"https://api.github.com/users/perthgophers/events{/privacy}","received_events_url":"https://api.github.com/users/perthgophers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/perthgophers/puddle","description":"The Perth Gophers Slackbot Mud Project","fork":false,"url":"https://api.github.com/repos/perthgophers/puddle","forks_url":"https://api.github.com/repos/perthgophers/puddle/forks","keys_url":"https://api.github.com/repos/perthgophers/puddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/perthgophers/puddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/perthgophers/puddle/teams","hooks_url":"https://api.github.com/repos/perthgophers/puddle/hooks","issue_events_url":"https://api.github.com/repos/perthgophers/puddle/issues/events{/number}","events_url":"https://api.github.com/repos/perthgophers/puddle/events","assignees_url":"https://api.github.com/repos/perthgophers/puddle/assignees{/user}","branches_url":"https://api.github.com/repos/perthgophers/puddle/branches{/branch}","tags_url":"https://api.github.com/repos/perthgophers/puddle/tags","blobs_url":"https://api.github.com/repos/perthgophers/puddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/perthgophers/puddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/perthgophers/puddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/perthgophers/puddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/perthgophers/puddle/statuses/{sha}","languages_url":"https://api.github.com/repos/perthgophers/puddle/languages","stargazers_url":"https://api.github.com/repos/perthgophers/puddle/stargazers","contributors_url":"https://api.github.com/repos/perthgophers/puddle/contributors","subscribers_url":"https://api.github.com/repos/perthgophers/puddle/subscribers","subscription_url":"https://api.github.com/repos/perthgophers/puddle/subscription","commits_url":"https://api.github.com/repos/perthgophers/puddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/perthgophers/puddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/perthgophers/puddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/perthgophers/puddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/perthgophers/puddle/contents/{+path}","compare_url":"https://api.github.com/repos/perthgophers/puddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/perthgophers/puddle/merges","archive_url":"https://api.github.com/repos/perthgophers/puddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/perthgophers/puddle/downloads","issues_url":"https://api.github.com/repos/perthgophers/puddle/issues{/number}","pulls_url":"https://api.github.com/repos/perthgophers/puddle/pulls{/number}","milestones_url":"https://api.github.com/repos/perthgophers/puddle/milestones{/number}","notifications_url":"https://api.github.com/repos/perthgophers/puddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/perthgophers/puddle/labels{/name}","releases_url":"https://api.github.com/repos/perthgophers/puddle/releases{/id}","deployments_url":"https://api.github.com/repos/perthgophers/puddle/deployments","created_at":"2016-11-15T01:38:01Z","updated_at":"2016-11-16T05:52:05Z","pushed_at":"2016-11-16T10:48:04Z","git_url":"git://github.com/perthgophers/puddle.git","ssh_url":"git@github.com:perthgophers/puddle.git","clone_url":"https://github.com/perthgophers/puddle.git","svn_url":"https://github.com/perthgophers/puddle","homepage":"https://perthgophers.github.io/puddle/","size":65,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/perthgophers/puddle/pulls/31"},"html":{"href":"https://github.com/perthgophers/puddle/pull/31"},"issue":{"href":"https://api.github.com/repos/perthgophers/puddle/issues/31"},"comments":{"href":"https://api.github.com/repos/perthgophers/puddle/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/perthgophers/puddle/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/perthgophers/puddle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/perthgophers/puddle/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/perthgophers/puddle/statuses/c32119c03a79daf8eba8632b3c9e851ae02de1ff"}}}}
{"actor":{"display_login":"nii236"}}