{"action":"created","comment":{"url":"https://api.github.com/repos/botpress/botpress/pulls/comments/274728026","pull_request_review_id":225857919,"id":274728026,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3NDcyODAyNg==","diff_hunk":"@@ -159,8 +159,8 @@ export class MessengerService {\n         debugMessages('could not find a bot for page id =', pageId)\n         continue\n       }\n-\n-      for (const webhookEvent of messages) {\n+      if(messages !=undefined){ //TODO If its not a message process accordingly","path":"modules/channel-messenger/src/backend/messenger.ts","position":null,"original_position":6,"commit_id":"ee95200e2edc49b35b5d6e49562a88acdfd09141","original_commit_id":"10f5050bc6791bf526e750d0e02c324c9696bb4d","user":{"login":"mrbarletta","id":2429244,"node_id":"MDQ6VXNlcjI0MjkyNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2429244?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbarletta","html_url":"https://github.com/mrbarletta","followers_url":"https://api.github.com/users/mrbarletta/followers","following_url":"https://api.github.com/users/mrbarletta/following{/other_user}","gists_url":"https://api.github.com/users/mrbarletta/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbarletta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbarletta/subscriptions","organizations_url":"https://api.github.com/users/mrbarletta/orgs","repos_url":"https://api.github.com/users/mrbarletta/repos","events_url":"https://api.github.com/users/mrbarletta/events{/privacy}","received_events_url":"https://api.github.com/users/mrbarletta/received_events","type":"User","site_admin":false},"body":"sorry I did it using the github online edtiro, will do!","created_at":"2019-04-12T00:48:49Z","updated_at":"2019-04-12T00:48:49Z","html_url":"https://github.com/botpress/botpress/pull/1670#discussion_r274728026","pull_request_url":"https://api.github.com/repos/botpress/botpress/pulls/1670","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/botpress/botpress/pulls/comments/274728026"},"html":{"href":"https://github.com/botpress/botpress/pull/1670#discussion_r274728026"},"pull_request":{"href":"https://api.github.com/repos/botpress/botpress/pulls/1670"}},"in_reply_to_id":274101369},"pull_request":{"url":"https://api.github.com/repos/botpress/botpress/pulls/1670","id":269012635,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY5MDEyNjM1","html_url":"https://github.com/botpress/botpress/pull/1670","diff_url":"https://github.com/botpress/botpress/pull/1670.diff","patch_url":"https://github.com/botpress/botpress/pull/1670.patch","issue_url":"https://api.github.com/repos/botpress/botpress/issues/1670","number":1670,"state":"open","locked":false,"title":"fix(messenger): messages is not iterable","user":{"login":"mrbarletta","id":2429244,"node_id":"MDQ6VXNlcjI0MjkyNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2429244?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbarletta","html_url":"https://github.com/mrbarletta","followers_url":"https://api.github.com/users/mrbarletta/followers","following_url":"https://api.github.com/users/mrbarletta/following{/other_user}","gists_url":"https://api.github.com/users/mrbarletta/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbarletta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbarletta/subscriptions","organizations_url":"https://api.github.com/users/mrbarletta/orgs","repos_url":"https://api.github.com/users/mrbarletta/repos","events_url":"https://api.github.com/users/mrbarletta/events{/privacy}","received_events_url":"https://api.github.com/users/mrbarletta/received_events","type":"User","site_admin":false},"body":" Currently _handleIncomingMessage expects a webhook containing messages but in the case the bot has been subscribed to more events (e.g. standby) this will fail with  ` [TypeError, messages is not iterable]` as there is no message property in the webhook. \r\nThis is just validation to avoid the rejection.","created_at":"2019-04-10T05:30:11Z","updated_at":"2019-04-12T00:48:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0209240b5a684ee81a3e261dee34cc9a2856676d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/botpress/botpress/pulls/1670/commits","review_comments_url":"https://api.github.com/repos/botpress/botpress/pulls/1670/comments","review_comment_url":"https://api.github.com/repos/botpress/botpress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/botpress/botpress/issues/1670/comments","statuses_url":"https://api.github.com/repos/botpress/botpress/statuses/ee95200e2edc49b35b5d6e49562a88acdfd09141","head":{"label":"mrbarletta:patch-2","ref":"patch-2","sha":"ee95200e2edc49b35b5d6e49562a88acdfd09141","user":{"login":"mrbarletta","id":2429244,"node_id":"MDQ6VXNlcjI0MjkyNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2429244?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbarletta","html_url":"https://github.com/mrbarletta","followers_url":"https://api.github.com/users/mrbarletta/followers","following_url":"https://api.github.com/users/mrbarletta/following{/other_user}","gists_url":"https://api.github.com/users/mrbarletta/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbarletta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbarletta/subscriptions","organizations_url":"https://api.github.com/users/mrbarletta/orgs","repos_url":"https://api.github.com/users/mrbarletta/repos","events_url":"https://api.github.com/users/mrbarletta/events{/privacy}","received_events_url":"https://api.github.com/users/mrbarletta/received_events","type":"User","site_admin":false},"repo":{"id":122274371,"node_id":"MDEwOlJlcG9zaXRvcnkxMjIyNzQzNzE=","name":"botpress","full_name":"mrbarletta/botpress","private":false,"owner":{"login":"mrbarletta","id":2429244,"node_id":"MDQ6VXNlcjI0MjkyNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2429244?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbarletta","html_url":"https://github.com/mrbarletta","followers_url":"https://api.github.com/users/mrbarletta/followers","following_url":"https://api.github.com/users/mrbarletta/following{/other_user}","gists_url":"https://api.github.com/users/mrbarletta/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbarletta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbarletta/subscriptions","organizations_url":"https://api.github.com/users/mrbarletta/orgs","repos_url":"https://api.github.com/users/mrbarletta/repos","events_url":"https://api.github.com/users/mrbarletta/events{/privacy}","received_events_url":"https://api.github.com/users/mrbarletta/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mrbarletta/botpress","description":"🤖 Modular chatbot framework that ⚡ thousands of bots all around the world","fork":true,"url":"https://api.github.com/repos/mrbarletta/botpress","forks_url":"https://api.github.com/repos/mrbarletta/botpress/forks","keys_url":"https://api.github.com/repos/mrbarletta/botpress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrbarletta/botpress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrbarletta/botpress/teams","hooks_url":"https://api.github.com/repos/mrbarletta/botpress/hooks","issue_events_url":"https://api.github.com/repos/mrbarletta/botpress/issues/events{/number}","events_url":"https://api.github.com/repos/mrbarletta/botpress/events","assignees_url":"https://api.github.com/repos/mrbarletta/botpress/assignees{/user}","branches_url":"https://api.github.com/repos/mrbarletta/botpress/branches{/branch}","tags_url":"https://api.github.com/repos/mrbarletta/botpress/tags","blobs_url":"https://api.github.com/repos/mrbarletta/botpress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrbarletta/botpress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrbarletta/botpress/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrbarletta/botpress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrbarletta/botpress/statuses/{sha}","languages_url":"https://api.github.com/repos/mrbarletta/botpress/languages","stargazers_url":"https://api.github.com/repos/mrbarletta/botpress/stargazers","contributors_url":"https://api.github.com/repos/mrbarletta/botpress/contributors","subscribers_url":"https://api.github.com/repos/mrbarletta/botpress/subscribers","subscription_url":"https://api.github.com/repos/mrbarletta/botpress/subscription","commits_url":"https://api.github.com/repos/mrbarletta/botpress/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrbarletta/botpress/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrbarletta/botpress/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrbarletta/botpress/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrbarletta/botpress/contents/{+path}","compare_url":"https://api.github.com/repos/mrbarletta/botpress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrbarletta/botpress/merges","archive_url":"https://api.github.com/repos/mrbarletta/botpress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrbarletta/botpress/downloads","issues_url":"https://api.github.com/repos/mrbarletta/botpress/issues{/number}","pulls_url":"https://api.github.com/repos/mrbarletta/botpress/pulls{/number}","milestones_url":"https://api.github.com/repos/mrbarletta/botpress/milestones{/number}","notifications_url":"https://api.github.com/repos/mrbarletta/botpress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrbarletta/botpress/labels{/name}","releases_url":"https://api.github.com/repos/mrbarletta/botpress/releases{/id}","deployments_url":"https://api.github.com/repos/mrbarletta/botpress/deployments","created_at":"2018-02-21T00:25:27Z","updated_at":"2018-02-21T00:25:29Z","pushed_at":"2019-04-12T00:46:08Z","git_url":"git://github.com/mrbarletta/botpress.git","ssh_url":"git@github.com:mrbarletta/botpress.git","clone_url":"https://github.com/mrbarletta/botpress.git","svn_url":"https://github.com/mrbarletta/botpress","homepage":"https://botpress.io","size":154375,"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,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"botpress:master","ref":"master","sha":"a7fd6095c7cf05d07cbf6723349328fbde609a86","user":{"login":"botpress","id":23510677,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTEwNjc3","avatar_url":"https://avatars3.githubusercontent.com/u/23510677?v=4","gravatar_id":"","url":"https://api.github.com/users/botpress","html_url":"https://github.com/botpress","followers_url":"https://api.github.com/users/botpress/followers","following_url":"https://api.github.com/users/botpress/following{/other_user}","gists_url":"https://api.github.com/users/botpress/gists{/gist_id}","starred_url":"https://api.github.com/users/botpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botpress/subscriptions","organizations_url":"https://api.github.com/users/botpress/orgs","repos_url":"https://api.github.com/users/botpress/repos","events_url":"https://api.github.com/users/botpress/events{/privacy}","received_events_url":"https://api.github.com/users/botpress/received_events","type":"Organization","site_admin":false},"repo":{"id":73964895,"node_id":"MDEwOlJlcG9zaXRvcnk3Mzk2NDg5NQ==","name":"botpress","full_name":"botpress/botpress","private":false,"owner":{"login":"botpress","id":23510677,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTEwNjc3","avatar_url":"https://avatars3.githubusercontent.com/u/23510677?v=4","gravatar_id":"","url":"https://api.github.com/users/botpress","html_url":"https://github.com/botpress","followers_url":"https://api.github.com/users/botpress/followers","following_url":"https://api.github.com/users/botpress/following{/other_user}","gists_url":"https://api.github.com/users/botpress/gists{/gist_id}","starred_url":"https://api.github.com/users/botpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botpress/subscriptions","organizations_url":"https://api.github.com/users/botpress/orgs","repos_url":"https://api.github.com/users/botpress/repos","events_url":"https://api.github.com/users/botpress/events{/privacy}","received_events_url":"https://api.github.com/users/botpress/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/botpress/botpress","description":"🤖 The ultimate open-source conversational platform with built-in natural language processing (NLU), easy-to-use graphical interface and dialog manager ⚡","fork":false,"url":"https://api.github.com/repos/botpress/botpress","forks_url":"https://api.github.com/repos/botpress/botpress/forks","keys_url":"https://api.github.com/repos/botpress/botpress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/botpress/botpress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/botpress/botpress/teams","hooks_url":"https://api.github.com/repos/botpress/botpress/hooks","issue_events_url":"https://api.github.com/repos/botpress/botpress/issues/events{/number}","events_url":"https://api.github.com/repos/botpress/botpress/events","assignees_url":"https://api.github.com/repos/botpress/botpress/assignees{/user}","branches_url":"https://api.github.com/repos/botpress/botpress/branches{/branch}","tags_url":"https://api.github.com/repos/botpress/botpress/tags","blobs_url":"https://api.github.com/repos/botpress/botpress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/botpress/botpress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/botpress/botpress/git/refs{/sha}","trees_url":"https://api.github.com/repos/botpress/botpress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/botpress/botpress/statuses/{sha}","languages_url":"https://api.github.com/repos/botpress/botpress/languages","stargazers_url":"https://api.github.com/repos/botpress/botpress/stargazers","contributors_url":"https://api.github.com/repos/botpress/botpress/contributors","subscribers_url":"https://api.github.com/repos/botpress/botpress/subscribers","subscription_url":"https://api.github.com/repos/botpress/botpress/subscription","commits_url":"https://api.github.com/repos/botpress/botpress/commits{/sha}","git_commits_url":"https://api.github.com/repos/botpress/botpress/git/commits{/sha}","comments_url":"https://api.github.com/repos/botpress/botpress/comments{/number}","issue_comment_url":"https://api.github.com/repos/botpress/botpress/issues/comments{/number}","contents_url":"https://api.github.com/repos/botpress/botpress/contents/{+path}","compare_url":"https://api.github.com/repos/botpress/botpress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/botpress/botpress/merges","archive_url":"https://api.github.com/repos/botpress/botpress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/botpress/botpress/downloads","issues_url":"https://api.github.com/repos/botpress/botpress/issues{/number}","pulls_url":"https://api.github.com/repos/botpress/botpress/pulls{/number}","milestones_url":"https://api.github.com/repos/botpress/botpress/milestones{/number}","notifications_url":"https://api.github.com/repos/botpress/botpress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/botpress/botpress/labels{/name}","releases_url":"https://api.github.com/repos/botpress/botpress/releases{/id}","deployments_url":"https://api.github.com/repos/botpress/botpress/deployments","created_at":"2016-11-16T21:57:59Z","updated_at":"2019-04-12T00:34:33Z","pushed_at":"2019-04-12T00:46:11Z","git_url":"git://github.com/botpress/botpress.git","ssh_url":"git@github.com:botpress/botpress.git","clone_url":"https://github.com/botpress/botpress.git","svn_url":"https://github.com/botpress/botpress","homepage":"https://botpress.io","size":156082,"stargazers_count":7137,"watchers_count":7137,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":720,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":74,"license":null,"forks":720,"open_issues":74,"watchers":7137,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/botpress/botpress/pulls/1670"},"html":{"href":"https://github.com/botpress/botpress/pull/1670"},"issue":{"href":"https://api.github.com/repos/botpress/botpress/issues/1670"},"comments":{"href":"https://api.github.com/repos/botpress/botpress/issues/1670/comments"},"review_comments":{"href":"https://api.github.com/repos/botpress/botpress/pulls/1670/comments"},"review_comment":{"href":"https://api.github.com/repos/botpress/botpress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/botpress/botpress/pulls/1670/commits"},"statuses":{"href":"https://api.github.com/repos/botpress/botpress/statuses/ee95200e2edc49b35b5d6e49562a88acdfd09141"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mrbarletta"}}