{"action":"created","comment":{"url":"https://api.github.com/repos/destinygg/chat-bot/pulls/comments/226387472","pull_request_review_id":166198353,"id":226387472,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjM4NzQ3Mg==","diff_hunk":"@@ -29,7 +29,7 @@ function formatUnban(user) {\n \n function parseMessage(message) {\n   const parsed = JSON.parse(message.replace('MSG ', ''));\n-  return { user: parsed.nick, roles: parsed.features, message: parsed.data };","path":"lib/chat-utils/parse-commands-from-chat.js","position":4,"original_position":4,"commit_id":"b8681886d8182b5b760e5c116af20e4db6ff4a07","original_commit_id":"b8681886d8182b5b760e5c116af20e4db6ff4a07","user":{"login":"dotted","id":136996,"node_id":"MDQ6VXNlcjEzNjk5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/136996?v=4","gravatar_id":"","url":"https://api.github.com/users/dotted","html_url":"https://github.com/dotted","followers_url":"https://api.github.com/users/dotted/followers","following_url":"https://api.github.com/users/dotted/following{/other_user}","gists_url":"https://api.github.com/users/dotted/gists{/gist_id}","starred_url":"https://api.github.com/users/dotted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotted/subscriptions","organizations_url":"https://api.github.com/users/dotted/orgs","repos_url":"https://api.github.com/users/dotted/repos","events_url":"https://api.github.com/users/dotted/events{/privacy}","received_events_url":"https://api.github.com/users/dotted/received_events","type":"User","site_admin":false},"body":"I'll double check, but at the time there was no data property at all so `undefined` got passed around resulting in a crash on the second message from any user.","created_at":"2018-10-18T17:00:15Z","updated_at":"2018-10-18T17:00:15Z","html_url":"https://github.com/destinygg/chat-bot/pull/4#discussion_r226387472","pull_request_url":"https://api.github.com/repos/destinygg/chat-bot/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/destinygg/chat-bot/pulls/comments/226387472"},"html":{"href":"https://github.com/destinygg/chat-bot/pull/4#discussion_r226387472"},"pull_request":{"href":"https://api.github.com/repos/destinygg/chat-bot/pulls/4"}},"in_reply_to_id":226381206},"pull_request":{"url":"https://api.github.com/repos/destinygg/chat-bot/pulls/4","id":223961866,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzOTYxODY2","html_url":"https://github.com/destinygg/chat-bot/pull/4","diff_url":"https://github.com/destinygg/chat-bot/pull/4.diff","patch_url":"https://github.com/destinygg/chat-bot/pull/4.patch","issue_url":"https://api.github.com/repos/destinygg/chat-bot/issues/4","number":4,"state":"open","locked":false,"title":"Various fixes and tweaks","user":{"login":"dotted","id":136996,"node_id":"MDQ6VXNlcjEzNjk5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/136996?v=4","gravatar_id":"","url":"https://api.github.com/users/dotted","html_url":"https://github.com/dotted","followers_url":"https://api.github.com/users/dotted/followers","following_url":"https://api.github.com/users/dotted/following{/other_user}","gists_url":"https://api.github.com/users/dotted/gists{/gist_id}","starred_url":"https://api.github.com/users/dotted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotted/subscriptions","organizations_url":"https://api.github.com/users/dotted/orgs","repos_url":"https://api.github.com/users/dotted/repos","events_url":"https://api.github.com/users/dotted/events{/privacy}","received_events_url":"https://api.github.com/users/dotted/received_events","type":"User","site_admin":false},"body":"- Adds license text, package.json specified MIT.\r\n- Cleans up eslint stuff, so no eslint-disable are used anymore.\r\n- Globally allow the use of console in eslint.\r\n- Made it a bit more Windows dev friendly by enforcing LF line endnings in git, this avoids eslint complaining about them.\r\n- I don't know why some lib devs insist on giving usage examples with hardcoded paths to executeables. Looking at you bunyan devs. Regardless it is fixed, so now these also work for Windows.\r\n- Fixed a crash that always happened on second sent message","created_at":"2018-10-18T13:43:41Z","updated_at":"2018-10-18T17:00:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24417ac504cb1c6c156e97682b821a4597ce264c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/destinygg/chat-bot/pulls/4/commits","review_comments_url":"https://api.github.com/repos/destinygg/chat-bot/pulls/4/comments","review_comment_url":"https://api.github.com/repos/destinygg/chat-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/destinygg/chat-bot/issues/4/comments","statuses_url":"https://api.github.com/repos/destinygg/chat-bot/statuses/b8681886d8182b5b760e5c116af20e4db6ff4a07","head":{"label":"dotted:feature/fixups","ref":"feature/fixups","sha":"b8681886d8182b5b760e5c116af20e4db6ff4a07","user":{"login":"dotted","id":136996,"node_id":"MDQ6VXNlcjEzNjk5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/136996?v=4","gravatar_id":"","url":"https://api.github.com/users/dotted","html_url":"https://github.com/dotted","followers_url":"https://api.github.com/users/dotted/followers","following_url":"https://api.github.com/users/dotted/following{/other_user}","gists_url":"https://api.github.com/users/dotted/gists{/gist_id}","starred_url":"https://api.github.com/users/dotted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotted/subscriptions","organizations_url":"https://api.github.com/users/dotted/orgs","repos_url":"https://api.github.com/users/dotted/repos","events_url":"https://api.github.com/users/dotted/events{/privacy}","received_events_url":"https://api.github.com/users/dotted/received_events","type":"User","site_admin":false},"repo":{"id":153565714,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM1NjU3MTQ=","name":"chat-bot","full_name":"dotted/chat-bot","private":false,"owner":{"login":"dotted","id":136996,"node_id":"MDQ6VXNlcjEzNjk5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/136996?v=4","gravatar_id":"","url":"https://api.github.com/users/dotted","html_url":"https://github.com/dotted","followers_url":"https://api.github.com/users/dotted/followers","following_url":"https://api.github.com/users/dotted/following{/other_user}","gists_url":"https://api.github.com/users/dotted/gists{/gist_id}","starred_url":"https://api.github.com/users/dotted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotted/subscriptions","organizations_url":"https://api.github.com/users/dotted/orgs","repos_url":"https://api.github.com/users/dotted/repos","events_url":"https://api.github.com/users/dotted/events{/privacy}","received_events_url":"https://api.github.com/users/dotted/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dotted/chat-bot","description":"Work in progress new chat bot.","fork":true,"url":"https://api.github.com/repos/dotted/chat-bot","forks_url":"https://api.github.com/repos/dotted/chat-bot/forks","keys_url":"https://api.github.com/repos/dotted/chat-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotted/chat-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotted/chat-bot/teams","hooks_url":"https://api.github.com/repos/dotted/chat-bot/hooks","issue_events_url":"https://api.github.com/repos/dotted/chat-bot/issues/events{/number}","events_url":"https://api.github.com/repos/dotted/chat-bot/events","assignees_url":"https://api.github.com/repos/dotted/chat-bot/assignees{/user}","branches_url":"https://api.github.com/repos/dotted/chat-bot/branches{/branch}","tags_url":"https://api.github.com/repos/dotted/chat-bot/tags","blobs_url":"https://api.github.com/repos/dotted/chat-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotted/chat-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotted/chat-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotted/chat-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotted/chat-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/dotted/chat-bot/languages","stargazers_url":"https://api.github.com/repos/dotted/chat-bot/stargazers","contributors_url":"https://api.github.com/repos/dotted/chat-bot/contributors","subscribers_url":"https://api.github.com/repos/dotted/chat-bot/subscribers","subscription_url":"https://api.github.com/repos/dotted/chat-bot/subscription","commits_url":"https://api.github.com/repos/dotted/chat-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotted/chat-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotted/chat-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotted/chat-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotted/chat-bot/contents/{+path}","compare_url":"https://api.github.com/repos/dotted/chat-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotted/chat-bot/merges","archive_url":"https://api.github.com/repos/dotted/chat-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotted/chat-bot/downloads","issues_url":"https://api.github.com/repos/dotted/chat-bot/issues{/number}","pulls_url":"https://api.github.com/repos/dotted/chat-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/dotted/chat-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/dotted/chat-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotted/chat-bot/labels{/name}","releases_url":"https://api.github.com/repos/dotted/chat-bot/releases{/id}","deployments_url":"https://api.github.com/repos/dotted/chat-bot/deployments","created_at":"2018-10-18T04:57:50Z","updated_at":"2018-10-18T12:11:49Z","pushed_at":"2018-10-18T13:48:41Z","git_url":"git://github.com/dotted/chat-bot.git","ssh_url":"git@github.com:dotted/chat-bot.git","clone_url":"https://github.com/dotted/chat-bot.git","svn_url":"https://github.com/dotted/chat-bot","homepage":"","size":90,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"destinygg:master","ref":"master","sha":"e9cbaf043c0068ebbabe5a612549566e0422c137","user":{"login":"destinygg","id":4997849,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5OTc4NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/4997849?v=4","gravatar_id":"","url":"https://api.github.com/users/destinygg","html_url":"https://github.com/destinygg","followers_url":"https://api.github.com/users/destinygg/followers","following_url":"https://api.github.com/users/destinygg/following{/other_user}","gists_url":"https://api.github.com/users/destinygg/gists{/gist_id}","starred_url":"https://api.github.com/users/destinygg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/destinygg/subscriptions","organizations_url":"https://api.github.com/users/destinygg/orgs","repos_url":"https://api.github.com/users/destinygg/repos","events_url":"https://api.github.com/users/destinygg/events{/privacy}","received_events_url":"https://api.github.com/users/destinygg/received_events","type":"Organization","site_admin":false},"repo":{"id":152940250,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI5NDAyNTA=","name":"chat-bot","full_name":"destinygg/chat-bot","private":false,"owner":{"login":"destinygg","id":4997849,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5OTc4NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/4997849?v=4","gravatar_id":"","url":"https://api.github.com/users/destinygg","html_url":"https://github.com/destinygg","followers_url":"https://api.github.com/users/destinygg/followers","following_url":"https://api.github.com/users/destinygg/following{/other_user}","gists_url":"https://api.github.com/users/destinygg/gists{/gist_id}","starred_url":"https://api.github.com/users/destinygg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/destinygg/subscriptions","organizations_url":"https://api.github.com/users/destinygg/orgs","repos_url":"https://api.github.com/users/destinygg/repos","events_url":"https://api.github.com/users/destinygg/events{/privacy}","received_events_url":"https://api.github.com/users/destinygg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/destinygg/chat-bot","description":"Work in progress new chat bot.","fork":false,"url":"https://api.github.com/repos/destinygg/chat-bot","forks_url":"https://api.github.com/repos/destinygg/chat-bot/forks","keys_url":"https://api.github.com/repos/destinygg/chat-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/destinygg/chat-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/destinygg/chat-bot/teams","hooks_url":"https://api.github.com/repos/destinygg/chat-bot/hooks","issue_events_url":"https://api.github.com/repos/destinygg/chat-bot/issues/events{/number}","events_url":"https://api.github.com/repos/destinygg/chat-bot/events","assignees_url":"https://api.github.com/repos/destinygg/chat-bot/assignees{/user}","branches_url":"https://api.github.com/repos/destinygg/chat-bot/branches{/branch}","tags_url":"https://api.github.com/repos/destinygg/chat-bot/tags","blobs_url":"https://api.github.com/repos/destinygg/chat-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/destinygg/chat-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/destinygg/chat-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/destinygg/chat-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/destinygg/chat-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/destinygg/chat-bot/languages","stargazers_url":"https://api.github.com/repos/destinygg/chat-bot/stargazers","contributors_url":"https://api.github.com/repos/destinygg/chat-bot/contributors","subscribers_url":"https://api.github.com/repos/destinygg/chat-bot/subscribers","subscription_url":"https://api.github.com/repos/destinygg/chat-bot/subscription","commits_url":"https://api.github.com/repos/destinygg/chat-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/destinygg/chat-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/destinygg/chat-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/destinygg/chat-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/destinygg/chat-bot/contents/{+path}","compare_url":"https://api.github.com/repos/destinygg/chat-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/destinygg/chat-bot/merges","archive_url":"https://api.github.com/repos/destinygg/chat-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/destinygg/chat-bot/downloads","issues_url":"https://api.github.com/repos/destinygg/chat-bot/issues{/number}","pulls_url":"https://api.github.com/repos/destinygg/chat-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/destinygg/chat-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/destinygg/chat-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/destinygg/chat-bot/labels{/name}","releases_url":"https://api.github.com/repos/destinygg/chat-bot/releases{/id}","deployments_url":"https://api.github.com/repos/destinygg/chat-bot/deployments","created_at":"2018-10-14T04:47:49Z","updated_at":"2018-10-18T10:32:35Z","pushed_at":"2018-10-18T13:48:42Z","git_url":"git://github.com/destinygg/chat-bot.git","ssh_url":"git@github.com:destinygg/chat-bot.git","clone_url":"https://github.com/destinygg/chat-bot.git","svn_url":"https://github.com/destinygg/chat-bot","homepage":"","size":83,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/destinygg/chat-bot/pulls/4"},"html":{"href":"https://github.com/destinygg/chat-bot/pull/4"},"issue":{"href":"https://api.github.com/repos/destinygg/chat-bot/issues/4"},"comments":{"href":"https://api.github.com/repos/destinygg/chat-bot/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/destinygg/chat-bot/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/destinygg/chat-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/destinygg/chat-bot/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/destinygg/chat-bot/statuses/b8681886d8182b5b760e5c116af20e4db6ff4a07"}},"author_association":"NONE"}}
{"actor":{"display_login":"dotted"}}