{"action":"created","comment":{"url":"https://api.github.com/repos/carpedm20/fbchat/pulls/comments/221034235","pull_request_review_id":159584338,"id":221034235,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTAzNDIzNQ==","diff_hunk":"@@ -2397,21 +2425,33 @@ def stopListening(self):\n         self.listening = False\n         self.sticky, self.pool = (None, None)\n \n-    def listen(self, markAlive=True):\n+    def listen(self, markAlive=None):\n         \"\"\"\n         Initializes and runs the listening loop continually\n \n         :param markAlive: Whether this should ping the Facebook server each time the loop runs\n         :type markAlive: bool\n         \"\"\"\n+        if markAlive is not None:\n+            self._markAlive = markAlive","path":"fbchat/client.py","position":104,"original_position":104,"commit_id":"47ea88e025b99c3cb5133e66fa872be1a7c05ac9","original_commit_id":"47ea88e025b99c3cb5133e66fa872be1a7c05ac9","user":{"login":"madsmtm","id":10577181,"node_id":"MDQ6VXNlcjEwNTc3MTgx","avatar_url":"https://avatars2.githubusercontent.com/u/10577181?v=4","gravatar_id":"","url":"https://api.github.com/users/madsmtm","html_url":"https://github.com/madsmtm","followers_url":"https://api.github.com/users/madsmtm/followers","following_url":"https://api.github.com/users/madsmtm/following{/other_user}","gists_url":"https://api.github.com/users/madsmtm/gists{/gist_id}","starred_url":"https://api.github.com/users/madsmtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madsmtm/subscriptions","organizations_url":"https://api.github.com/users/madsmtm/orgs","repos_url":"https://api.github.com/users/madsmtm/repos","events_url":"https://api.github.com/users/madsmtm/events{/privacy}","received_events_url":"https://api.github.com/users/madsmtm/received_events","type":"User","site_admin":false},"body":"This should use `Client.setActiveStatus`","created_at":"2018-09-27T18:41:11Z","updated_at":"2018-09-27T18:49:28Z","html_url":"https://github.com/carpedm20/fbchat/pull/338#discussion_r221034235","pull_request_url":"https://api.github.com/repos/carpedm20/fbchat/pulls/338","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/carpedm20/fbchat/pulls/comments/221034235"},"html":{"href":"https://github.com/carpedm20/fbchat/pull/338#discussion_r221034235"},"pull_request":{"href":"https://api.github.com/repos/carpedm20/fbchat/pulls/338"}}},"pull_request":{"url":"https://api.github.com/repos/carpedm20/fbchat/pulls/338","id":217476130,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NDc2MTMw","html_url":"https://github.com/carpedm20/fbchat/pull/338","diff_url":"https://github.com/carpedm20/fbchat/pull/338.diff","patch_url":"https://github.com/carpedm20/fbchat/pull/338.patch","issue_url":"https://api.github.com/repos/carpedm20/fbchat/issues/338","number":338,"state":"open","locked":false,"title":"[Feature] Active status","user":{"login":"kapi2289","id":17834657,"node_id":"MDQ6VXNlcjE3ODM0NjU3","avatar_url":"https://avatars2.githubusercontent.com/u/17834657?v=4","gravatar_id":"","url":"https://api.github.com/users/kapi2289","html_url":"https://github.com/kapi2289","followers_url":"https://api.github.com/users/kapi2289/followers","following_url":"https://api.github.com/users/kapi2289/following{/other_user}","gists_url":"https://api.github.com/users/kapi2289/gists{/gist_id}","starred_url":"https://api.github.com/users/kapi2289/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapi2289/subscriptions","organizations_url":"https://api.github.com/users/kapi2289/orgs","repos_url":"https://api.github.com/users/kapi2289/repos","events_url":"https://api.github.com/users/kapi2289/events{/privacy}","received_events_url":"https://api.github.com/users/kapi2289/received_events","type":"User","site_admin":false},"body":"## Description\r\n- Added `ActiveStatus` model\r\n- Added changing client active status while listening\r\n- Added fetching friends' active status\r\n- Fixed `onImageChange` documentation and added missing `msg` parameter\r\n- Moved `on` methods to the right place","created_at":"2018-09-22T20:11:50Z","updated_at":"2018-09-27T18:49:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70f764f3c71bf8eedc8fe2c8d455fdf992d0c1b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/carpedm20/fbchat/pulls/338/commits","review_comments_url":"https://api.github.com/repos/carpedm20/fbchat/pulls/338/comments","review_comment_url":"https://api.github.com/repos/carpedm20/fbchat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/carpedm20/fbchat/issues/338/comments","statuses_url":"https://api.github.com/repos/carpedm20/fbchat/statuses/47ea88e025b99c3cb5133e66fa872be1a7c05ac9","head":{"label":"kapi2289:active_status","ref":"active_status","sha":"47ea88e025b99c3cb5133e66fa872be1a7c05ac9","user":{"login":"kapi2289","id":17834657,"node_id":"MDQ6VXNlcjE3ODM0NjU3","avatar_url":"https://avatars2.githubusercontent.com/u/17834657?v=4","gravatar_id":"","url":"https://api.github.com/users/kapi2289","html_url":"https://github.com/kapi2289","followers_url":"https://api.github.com/users/kapi2289/followers","following_url":"https://api.github.com/users/kapi2289/following{/other_user}","gists_url":"https://api.github.com/users/kapi2289/gists{/gist_id}","starred_url":"https://api.github.com/users/kapi2289/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapi2289/subscriptions","organizations_url":"https://api.github.com/users/kapi2289/orgs","repos_url":"https://api.github.com/users/kapi2289/repos","events_url":"https://api.github.com/users/kapi2289/events{/privacy}","received_events_url":"https://api.github.com/users/kapi2289/received_events","type":"User","site_admin":false},"repo":{"id":139637335,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk2MzczMzU=","name":"fbchat","full_name":"kapi2289/fbchat","private":false,"owner":{"login":"kapi2289","id":17834657,"node_id":"MDQ6VXNlcjE3ODM0NjU3","avatar_url":"https://avatars2.githubusercontent.com/u/17834657?v=4","gravatar_id":"","url":"https://api.github.com/users/kapi2289","html_url":"https://github.com/kapi2289","followers_url":"https://api.github.com/users/kapi2289/followers","following_url":"https://api.github.com/users/kapi2289/following{/other_user}","gists_url":"https://api.github.com/users/kapi2289/gists{/gist_id}","starred_url":"https://api.github.com/users/kapi2289/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapi2289/subscriptions","organizations_url":"https://api.github.com/users/kapi2289/orgs","repos_url":"https://api.github.com/users/kapi2289/repos","events_url":"https://api.github.com/users/kapi2289/events{/privacy}","received_events_url":"https://api.github.com/users/kapi2289/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kapi2289/fbchat","description":"Facebook Chat (Messenger) for Python","fork":true,"url":"https://api.github.com/repos/kapi2289/fbchat","forks_url":"https://api.github.com/repos/kapi2289/fbchat/forks","keys_url":"https://api.github.com/repos/kapi2289/fbchat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kapi2289/fbchat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kapi2289/fbchat/teams","hooks_url":"https://api.github.com/repos/kapi2289/fbchat/hooks","issue_events_url":"https://api.github.com/repos/kapi2289/fbchat/issues/events{/number}","events_url":"https://api.github.com/repos/kapi2289/fbchat/events","assignees_url":"https://api.github.com/repos/kapi2289/fbchat/assignees{/user}","branches_url":"https://api.github.com/repos/kapi2289/fbchat/branches{/branch}","tags_url":"https://api.github.com/repos/kapi2289/fbchat/tags","blobs_url":"https://api.github.com/repos/kapi2289/fbchat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kapi2289/fbchat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kapi2289/fbchat/git/refs{/sha}","trees_url":"https://api.github.com/repos/kapi2289/fbchat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kapi2289/fbchat/statuses/{sha}","languages_url":"https://api.github.com/repos/kapi2289/fbchat/languages","stargazers_url":"https://api.github.com/repos/kapi2289/fbchat/stargazers","contributors_url":"https://api.github.com/repos/kapi2289/fbchat/contributors","subscribers_url":"https://api.github.com/repos/kapi2289/fbchat/subscribers","subscription_url":"https://api.github.com/repos/kapi2289/fbchat/subscription","commits_url":"https://api.github.com/repos/kapi2289/fbchat/commits{/sha}","git_commits_url":"https://api.github.com/repos/kapi2289/fbchat/git/commits{/sha}","comments_url":"https://api.github.com/repos/kapi2289/fbchat/comments{/number}","issue_comment_url":"https://api.github.com/repos/kapi2289/fbchat/issues/comments{/number}","contents_url":"https://api.github.com/repos/kapi2289/fbchat/contents/{+path}","compare_url":"https://api.github.com/repos/kapi2289/fbchat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kapi2289/fbchat/merges","archive_url":"https://api.github.com/repos/kapi2289/fbchat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kapi2289/fbchat/downloads","issues_url":"https://api.github.com/repos/kapi2289/fbchat/issues{/number}","pulls_url":"https://api.github.com/repos/kapi2289/fbchat/pulls{/number}","milestones_url":"https://api.github.com/repos/kapi2289/fbchat/milestones{/number}","notifications_url":"https://api.github.com/repos/kapi2289/fbchat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kapi2289/fbchat/labels{/name}","releases_url":"https://api.github.com/repos/kapi2289/fbchat/releases{/id}","deployments_url":"https://api.github.com/repos/kapi2289/fbchat/deployments","created_at":"2018-07-03T21:10:14Z","updated_at":"2018-09-12T15:41:56Z","pushed_at":"2018-09-25T16:05:10Z","git_url":"git://github.com/kapi2289/fbchat.git","ssh_url":"git@github.com:kapi2289/fbchat.git","clone_url":"https://github.com/kapi2289/fbchat.git","svn_url":"https://github.com/kapi2289/fbchat","homepage":"https://fbchat.readthedocs.io","size":2424,"stargazers_count":0,"watchers_count":0,"language":"Python","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":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"carpedm20:master","ref":"master","sha":"08117e7a54a33f25812f9bd970e3c2e9cb96a17c","user":{"login":"carpedm20","id":3346407,"node_id":"MDQ6VXNlcjMzNDY0MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/3346407?v=4","gravatar_id":"","url":"https://api.github.com/users/carpedm20","html_url":"https://github.com/carpedm20","followers_url":"https://api.github.com/users/carpedm20/followers","following_url":"https://api.github.com/users/carpedm20/following{/other_user}","gists_url":"https://api.github.com/users/carpedm20/gists{/gist_id}","starred_url":"https://api.github.com/users/carpedm20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carpedm20/subscriptions","organizations_url":"https://api.github.com/users/carpedm20/orgs","repos_url":"https://api.github.com/users/carpedm20/repos","events_url":"https://api.github.com/users/carpedm20/events{/privacy}","received_events_url":"https://api.github.com/users/carpedm20/received_events","type":"User","site_admin":false},"repo":{"id":34165498,"node_id":"MDEwOlJlcG9zaXRvcnkzNDE2NTQ5OA==","name":"fbchat","full_name":"carpedm20/fbchat","private":false,"owner":{"login":"carpedm20","id":3346407,"node_id":"MDQ6VXNlcjMzNDY0MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/3346407?v=4","gravatar_id":"","url":"https://api.github.com/users/carpedm20","html_url":"https://github.com/carpedm20","followers_url":"https://api.github.com/users/carpedm20/followers","following_url":"https://api.github.com/users/carpedm20/following{/other_user}","gists_url":"https://api.github.com/users/carpedm20/gists{/gist_id}","starred_url":"https://api.github.com/users/carpedm20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carpedm20/subscriptions","organizations_url":"https://api.github.com/users/carpedm20/orgs","repos_url":"https://api.github.com/users/carpedm20/repos","events_url":"https://api.github.com/users/carpedm20/events{/privacy}","received_events_url":"https://api.github.com/users/carpedm20/received_events","type":"User","site_admin":false},"html_url":"https://github.com/carpedm20/fbchat","description":"Facebook Chat (Messenger) for Python","fork":false,"url":"https://api.github.com/repos/carpedm20/fbchat","forks_url":"https://api.github.com/repos/carpedm20/fbchat/forks","keys_url":"https://api.github.com/repos/carpedm20/fbchat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carpedm20/fbchat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carpedm20/fbchat/teams","hooks_url":"https://api.github.com/repos/carpedm20/fbchat/hooks","issue_events_url":"https://api.github.com/repos/carpedm20/fbchat/issues/events{/number}","events_url":"https://api.github.com/repos/carpedm20/fbchat/events","assignees_url":"https://api.github.com/repos/carpedm20/fbchat/assignees{/user}","branches_url":"https://api.github.com/repos/carpedm20/fbchat/branches{/branch}","tags_url":"https://api.github.com/repos/carpedm20/fbchat/tags","blobs_url":"https://api.github.com/repos/carpedm20/fbchat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carpedm20/fbchat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carpedm20/fbchat/git/refs{/sha}","trees_url":"https://api.github.com/repos/carpedm20/fbchat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carpedm20/fbchat/statuses/{sha}","languages_url":"https://api.github.com/repos/carpedm20/fbchat/languages","stargazers_url":"https://api.github.com/repos/carpedm20/fbchat/stargazers","contributors_url":"https://api.github.com/repos/carpedm20/fbchat/contributors","subscribers_url":"https://api.github.com/repos/carpedm20/fbchat/subscribers","subscription_url":"https://api.github.com/repos/carpedm20/fbchat/subscription","commits_url":"https://api.github.com/repos/carpedm20/fbchat/commits{/sha}","git_commits_url":"https://api.github.com/repos/carpedm20/fbchat/git/commits{/sha}","comments_url":"https://api.github.com/repos/carpedm20/fbchat/comments{/number}","issue_comment_url":"https://api.github.com/repos/carpedm20/fbchat/issues/comments{/number}","contents_url":"https://api.github.com/repos/carpedm20/fbchat/contents/{+path}","compare_url":"https://api.github.com/repos/carpedm20/fbchat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carpedm20/fbchat/merges","archive_url":"https://api.github.com/repos/carpedm20/fbchat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carpedm20/fbchat/downloads","issues_url":"https://api.github.com/repos/carpedm20/fbchat/issues{/number}","pulls_url":"https://api.github.com/repos/carpedm20/fbchat/pulls{/number}","milestones_url":"https://api.github.com/repos/carpedm20/fbchat/milestones{/number}","notifications_url":"https://api.github.com/repos/carpedm20/fbchat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carpedm20/fbchat/labels{/name}","releases_url":"https://api.github.com/repos/carpedm20/fbchat/releases{/id}","deployments_url":"https://api.github.com/repos/carpedm20/fbchat/deployments","created_at":"2015-04-18T12:44:06Z","updated_at":"2018-09-27T18:27:08Z","pushed_at":"2018-09-27T18:27:04Z","git_url":"git://github.com/carpedm20/fbchat.git","ssh_url":"git@github.com:carpedm20/fbchat.git","clone_url":"https://github.com/carpedm20/fbchat.git","svn_url":"https://github.com/carpedm20/fbchat","homepage":"https://fbchat.readthedocs.io","size":2278,"stargazers_count":543,"watchers_count":543,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":206,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":206,"open_issues":51,"watchers":543,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/carpedm20/fbchat/pulls/338"},"html":{"href":"https://github.com/carpedm20/fbchat/pull/338"},"issue":{"href":"https://api.github.com/repos/carpedm20/fbchat/issues/338"},"comments":{"href":"https://api.github.com/repos/carpedm20/fbchat/issues/338/comments"},"review_comments":{"href":"https://api.github.com/repos/carpedm20/fbchat/pulls/338/comments"},"review_comment":{"href":"https://api.github.com/repos/carpedm20/fbchat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/carpedm20/fbchat/pulls/338/commits"},"statuses":{"href":"https://api.github.com/repos/carpedm20/fbchat/statuses/47ea88e025b99c3cb5133e66fa872be1a7c05ac9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"madsmtm"}}