{"action":"created","comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/120863065","pull_request_review_id":42861746,"id":120863065,"diff_hunk":"@@ -283,6 +283,27 @@ class ModelUsers extends RocketChat.models._Base {\n \t\treturn this.update(_id, update);\n \t}\n \n+\tsetChannels(_id) {\n+\t\tconst update = {\n+\t\t\t$set: {\n+\t\t\t\tautomatic_channels: [{\n+\t\t\t\t\t'language': {\n+\t\t\t\t\t\t'blacklisted': [],\n+\t\t\t\t\t\t'added_to': []\n+\t\t\t\t\t}\n+\t\t\t\t}, {\n+\t\t\t\t\t'country': {","path":"packages/rocketchat-lib/server/models/Users.js","position":13,"original_position":13,"commit_id":"be26114178e7a670459c9e885fd94ed3f820f165","original_commit_id":"be26114178e7a670459c9e885fd94ed3f820f165","user":{"login":"mitar","id":585279,"avatar_url":"https://avatars0.githubusercontent.com/u/585279?v=3","gravatar_id":"","url":"https://api.github.com/users/mitar","html_url":"https://github.com/mitar","followers_url":"https://api.github.com/users/mitar/followers","following_url":"https://api.github.com/users/mitar/following{/other_user}","gists_url":"https://api.github.com/users/mitar/gists{/gist_id}","starred_url":"https://api.github.com/users/mitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitar/subscriptions","organizations_url":"https://api.github.com/users/mitar/orgs","repos_url":"https://api.github.com/users/mitar/repos","events_url":"https://api.github.com/users/mitar/events{/privacy}","received_events_url":"https://api.github.com/users/mitar/received_events","type":"User","site_admin":false},"body":"This is not part of this single plugin.","created_at":"2017-06-08T11:26:13Z","updated_at":"2017-06-08T11:26:13Z","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/7137#discussion_r120863065","pull_request_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/7137","_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/120863065"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/7137#discussion_r120863065"},"pull_request":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/7137"}}},"pull_request":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/7137","id":123387236,"html_url":"https://github.com/RocketChat/Rocket.Chat/pull/7137","diff_url":"https://github.com/RocketChat/Rocket.Chat/pull/7137.diff","patch_url":"https://github.com/RocketChat/Rocket.Chat/pull/7137.patch","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/7137","number":7137,"state":"open","locked":false,"title":"[NEW] Plugins for Automatic channels ","user":{"login":"karan-96","id":18359820,"avatar_url":"https://avatars2.githubusercontent.com/u/18359820?v=3","gravatar_id":"","url":"https://api.github.com/users/karan-96","html_url":"https://github.com/karan-96","followers_url":"https://api.github.com/users/karan-96/followers","following_url":"https://api.github.com/users/karan-96/following{/other_user}","gists_url":"https://api.github.com/users/karan-96/gists{/gist_id}","starred_url":"https://api.github.com/users/karan-96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karan-96/subscriptions","organizations_url":"https://api.github.com/users/karan-96/orgs","repos_url":"https://api.github.com/users/karan-96/repos","events_url":"https://api.github.com/users/karan-96/events{/privacy}","received_events_url":"https://api.github.com/users/karan-96/received_events","type":"User","site_admin":false},"body":"1. language plugin - adds user automatically to the channel of their browser's language.\r\n2. geoip plugin - this does the same on the basis of user's country.\r\n\r\nThe channels are automatically created if the do not exist.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","created_at":"2017-05-31T22:57:18Z","updated_at":"2017-06-08T11:26:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f3a9f0a5550c83587e962f2bdcd047a43e568ee","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/7137/commits","review_comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/7137/comments","review_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/7137/comments","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/be26114178e7a670459c9e885fd94ed3f820f165","head":{"label":"karan-96:plugins","ref":"plugins","sha":"be26114178e7a670459c9e885fd94ed3f820f165","user":{"login":"karan-96","id":18359820,"avatar_url":"https://avatars2.githubusercontent.com/u/18359820?v=3","gravatar_id":"","url":"https://api.github.com/users/karan-96","html_url":"https://github.com/karan-96","followers_url":"https://api.github.com/users/karan-96/followers","following_url":"https://api.github.com/users/karan-96/following{/other_user}","gists_url":"https://api.github.com/users/karan-96/gists{/gist_id}","starred_url":"https://api.github.com/users/karan-96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karan-96/subscriptions","organizations_url":"https://api.github.com/users/karan-96/orgs","repos_url":"https://api.github.com/users/karan-96/repos","events_url":"https://api.github.com/users/karan-96/events{/privacy}","received_events_url":"https://api.github.com/users/karan-96/received_events","type":"User","site_admin":false},"repo":{"id":92991695,"name":"Rocket.Chat","full_name":"karan-96/Rocket.Chat","owner":{"login":"karan-96","id":18359820,"avatar_url":"https://avatars2.githubusercontent.com/u/18359820?v=3","gravatar_id":"","url":"https://api.github.com/users/karan-96","html_url":"https://github.com/karan-96","followers_url":"https://api.github.com/users/karan-96/followers","following_url":"https://api.github.com/users/karan-96/following{/other_user}","gists_url":"https://api.github.com/users/karan-96/gists{/gist_id}","starred_url":"https://api.github.com/users/karan-96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karan-96/subscriptions","organizations_url":"https://api.github.com/users/karan-96/orgs","repos_url":"https://api.github.com/users/karan-96/repos","events_url":"https://api.github.com/users/karan-96/events{/privacy}","received_events_url":"https://api.github.com/users/karan-96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karan-96/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":true,"url":"https://api.github.com/repos/karan-96/Rocket.Chat","forks_url":"https://api.github.com/repos/karan-96/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/karan-96/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karan-96/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karan-96/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/karan-96/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/karan-96/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/karan-96/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/karan-96/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/karan-96/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/karan-96/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/karan-96/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karan-96/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karan-96/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/karan-96/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karan-96/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/karan-96/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/karan-96/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/karan-96/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/karan-96/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/karan-96/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/karan-96/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/karan-96/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/karan-96/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/karan-96/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/karan-96/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/karan-96/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karan-96/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/karan-96/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karan-96/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/karan-96/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/karan-96/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/karan-96/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/karan-96/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karan-96/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/karan-96/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/karan-96/Rocket.Chat/deployments","created_at":"2017-05-31T21:50:10Z","updated_at":"2017-05-31T21:50:16Z","pushed_at":"2017-06-06T18:12:12Z","git_url":"git://github.com/karan-96/Rocket.Chat.git","ssh_url":"git@github.com:karan-96/Rocket.Chat.git","clone_url":"https://github.com/karan-96/Rocket.Chat.git","svn_url":"https://github.com/karan-96/Rocket.Chat","homepage":"https://rocket.chat/","size":49094,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"RocketChat:develop","ref":"develop","sha":"ecc433967a33420f91ef9585f087dcd03ca72768","user":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars2.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"repo":{"id":35866694,"name":"Rocket.Chat","full_name":"RocketChat/Rocket.Chat","owner":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars2.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RocketChat/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":false,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat","forks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/deployments","created_at":"2015-05-19T07:36:09Z","updated_at":"2017-06-08T09:35:20Z","pushed_at":"2017-06-08T09:51:39Z","git_url":"git://github.com/RocketChat/Rocket.Chat.git","ssh_url":"git@github.com:RocketChat/Rocket.Chat.git","clone_url":"https://github.com/RocketChat/Rocket.Chat.git","svn_url":"https://github.com/RocketChat/Rocket.Chat","homepage":"https://rocket.chat/","size":49131,"stargazers_count":12291,"watchers_count":12291,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2635,"mirror_url":null,"open_issues_count":1926,"forks":2635,"open_issues":1926,"watchers":12291,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/7137"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/7137"},"issue":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/7137"},"comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/7137/comments"},"review_comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/7137/comments"},"review_comment":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/7137/commits"},"statuses":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/be26114178e7a670459c9e885fd94ed3f820f165"}}}}
{"actor":{"display_login":"mitar"}}