{"action":"created","comment":{"url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/comments/53561953","id":53561953,"diff_hunk":"@@ -98,7 +98,24 @@ def pull_prev_message(current_id, token, group_id):\n \tout_dict['count'] = str(grab_message_number(dirty_packet.content))\n \treturn out_dict\n \n-\n+def pull_specific_messages(current_id, token, group_id, number, after_bool):\n+\tif after_bool:\n+\t\tpayload = {\"limit\":number, \"after_id\":current_id, \"token\":token}\n+\telse:\n+\t\tpayload = {\"limit\":number, \"before_id\":current_id, \"token\":token}\n+\ttry:\n+\t\tdirty_packet = requests.get(\"https://api.groupme.com/v3/groups/\" +\n+\t\t\tgroup_id + \"/messages\", params=payload)\n+\texcept requests.exceptions.ConnectionError:\n+\t\ttime.sleep(.5)\n+\t\treturn 1\n+\tif \"200\" not in str(dirty_packet):","path":"inOut.py","position":16,"original_position":16,"commit_id":"e6760a90ac9967cdf5e7d4faa8f6463583c75f6f","original_commit_id":"e6760a90ac9967cdf5e7d4faa8f6463583c75f6f","user":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars.githubusercontent.com/u/1896383?v=3","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"body":"![](http://reactiongifs.com/?p=19856)","created_at":"2016-02-21T05:34:31Z","updated_at":"2016-02-21T05:34:31Z","html_url":"https://github.com/BrycenW/GroupMeBotPython/pull/11#discussion_r53561953","pull_request_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/comments/53561953"},"html":{"href":"https://github.com/BrycenW/GroupMeBotPython/pull/11#discussion_r53561953"},"pull_request":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/11","id":60074511,"html_url":"https://github.com/BrycenW/GroupMeBotPython/pull/11","diff_url":"https://github.com/BrycenW/GroupMeBotPython/pull/11.diff","patch_url":"https://github.com/BrycenW/GroupMeBotPython/pull/11.patch","issue_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues/11","number":11,"state":"open","locked":false,"title":"pull_specific_messages function has been added to pull a specific num…","user":{"login":"BrycenW","id":11896409,"avatar_url":"https://avatars.githubusercontent.com/u/11896409?v=3","gravatar_id":"","url":"https://api.github.com/users/BrycenW","html_url":"https://github.com/BrycenW","followers_url":"https://api.github.com/users/BrycenW/followers","following_url":"https://api.github.com/users/BrycenW/following{/other_user}","gists_url":"https://api.github.com/users/BrycenW/gists{/gist_id}","starred_url":"https://api.github.com/users/BrycenW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrycenW/subscriptions","organizations_url":"https://api.github.com/users/BrycenW/orgs","repos_url":"https://api.github.com/users/BrycenW/repos","events_url":"https://api.github.com/users/BrycenW/events{/privacy}","received_events_url":"https://api.github.com/users/BrycenW/received_events","type":"User","site_admin":false},"body":"…ber of messages. ","created_at":"2016-02-21T05:30:16Z","updated_at":"2016-02-21T05:34:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2618ca98a0f43843ee08b49e984dc2de3f271ef2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/11/commits","review_comments_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/11/comments","review_comment_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues/11/comments","statuses_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/statuses/e6760a90ac9967cdf5e7d4faa8f6463583c75f6f","head":{"label":"BrycenW:add_function","ref":"add_function","sha":"e6760a90ac9967cdf5e7d4faa8f6463583c75f6f","user":{"login":"BrycenW","id":11896409,"avatar_url":"https://avatars.githubusercontent.com/u/11896409?v=3","gravatar_id":"","url":"https://api.github.com/users/BrycenW","html_url":"https://github.com/BrycenW","followers_url":"https://api.github.com/users/BrycenW/followers","following_url":"https://api.github.com/users/BrycenW/following{/other_user}","gists_url":"https://api.github.com/users/BrycenW/gists{/gist_id}","starred_url":"https://api.github.com/users/BrycenW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrycenW/subscriptions","organizations_url":"https://api.github.com/users/BrycenW/orgs","repos_url":"https://api.github.com/users/BrycenW/repos","events_url":"https://api.github.com/users/BrycenW/events{/privacy}","received_events_url":"https://api.github.com/users/BrycenW/received_events","type":"User","site_admin":false},"repo":{"id":42420807,"name":"GroupMeBotPython","full_name":"BrycenW/GroupMeBotPython","owner":{"login":"BrycenW","id":11896409,"avatar_url":"https://avatars.githubusercontent.com/u/11896409?v=3","gravatar_id":"","url":"https://api.github.com/users/BrycenW","html_url":"https://github.com/BrycenW","followers_url":"https://api.github.com/users/BrycenW/followers","following_url":"https://api.github.com/users/BrycenW/following{/other_user}","gists_url":"https://api.github.com/users/BrycenW/gists{/gist_id}","starred_url":"https://api.github.com/users/BrycenW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrycenW/subscriptions","organizations_url":"https://api.github.com/users/BrycenW/orgs","repos_url":"https://api.github.com/users/BrycenW/repos","events_url":"https://api.github.com/users/BrycenW/events{/privacy}","received_events_url":"https://api.github.com/users/BrycenW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BrycenW/GroupMeBotPython","description":"","fork":false,"url":"https://api.github.com/repos/BrycenW/GroupMeBotPython","forks_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/forks","keys_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/teams","hooks_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/hooks","issue_events_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues/events{/number}","events_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/events","assignees_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/assignees{/user}","branches_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/branches{/branch}","tags_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/tags","blobs_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/refs{/sha}","trees_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/statuses/{sha}","languages_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/languages","stargazers_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/stargazers","contributors_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/contributors","subscribers_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/subscribers","subscription_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/subscription","commits_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/commits{/sha}","git_commits_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/commits{/sha}","comments_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/comments{/number}","issue_comment_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues/comments{/number}","contents_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/contents/{+path}","compare_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/merges","archive_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/downloads","issues_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues{/number}","pulls_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls{/number}","milestones_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/milestones{/number}","notifications_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/labels{/name}","releases_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/releases{/id}","deployments_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/deployments","created_at":"2015-09-14T01:46:12Z","updated_at":"2016-02-14T03:57:13Z","pushed_at":"2016-02-21T05:30:17Z","git_url":"git://github.com/BrycenW/GroupMeBotPython.git","ssh_url":"git@github.com:BrycenW/GroupMeBotPython.git","clone_url":"https://github.com/BrycenW/GroupMeBotPython.git","svn_url":"https://github.com/BrycenW/GroupMeBotPython","homepage":null,"size":5501,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"BrycenW:master","ref":"master","sha":"8090b5ec5b077adc3c1c17f9920b0ca2a0965440","user":{"login":"BrycenW","id":11896409,"avatar_url":"https://avatars.githubusercontent.com/u/11896409?v=3","gravatar_id":"","url":"https://api.github.com/users/BrycenW","html_url":"https://github.com/BrycenW","followers_url":"https://api.github.com/users/BrycenW/followers","following_url":"https://api.github.com/users/BrycenW/following{/other_user}","gists_url":"https://api.github.com/users/BrycenW/gists{/gist_id}","starred_url":"https://api.github.com/users/BrycenW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrycenW/subscriptions","organizations_url":"https://api.github.com/users/BrycenW/orgs","repos_url":"https://api.github.com/users/BrycenW/repos","events_url":"https://api.github.com/users/BrycenW/events{/privacy}","received_events_url":"https://api.github.com/users/BrycenW/received_events","type":"User","site_admin":false},"repo":{"id":42420807,"name":"GroupMeBotPython","full_name":"BrycenW/GroupMeBotPython","owner":{"login":"BrycenW","id":11896409,"avatar_url":"https://avatars.githubusercontent.com/u/11896409?v=3","gravatar_id":"","url":"https://api.github.com/users/BrycenW","html_url":"https://github.com/BrycenW","followers_url":"https://api.github.com/users/BrycenW/followers","following_url":"https://api.github.com/users/BrycenW/following{/other_user}","gists_url":"https://api.github.com/users/BrycenW/gists{/gist_id}","starred_url":"https://api.github.com/users/BrycenW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrycenW/subscriptions","organizations_url":"https://api.github.com/users/BrycenW/orgs","repos_url":"https://api.github.com/users/BrycenW/repos","events_url":"https://api.github.com/users/BrycenW/events{/privacy}","received_events_url":"https://api.github.com/users/BrycenW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BrycenW/GroupMeBotPython","description":"","fork":false,"url":"https://api.github.com/repos/BrycenW/GroupMeBotPython","forks_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/forks","keys_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/teams","hooks_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/hooks","issue_events_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues/events{/number}","events_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/events","assignees_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/assignees{/user}","branches_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/branches{/branch}","tags_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/tags","blobs_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/refs{/sha}","trees_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/statuses/{sha}","languages_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/languages","stargazers_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/stargazers","contributors_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/contributors","subscribers_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/subscribers","subscription_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/subscription","commits_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/commits{/sha}","git_commits_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/git/commits{/sha}","comments_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/comments{/number}","issue_comment_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues/comments{/number}","contents_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/contents/{+path}","compare_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/merges","archive_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/downloads","issues_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues{/number}","pulls_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls{/number}","milestones_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/milestones{/number}","notifications_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/labels{/name}","releases_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/releases{/id}","deployments_url":"https://api.github.com/repos/BrycenW/GroupMeBotPython/deployments","created_at":"2015-09-14T01:46:12Z","updated_at":"2016-02-14T03:57:13Z","pushed_at":"2016-02-21T05:30:17Z","git_url":"git://github.com/BrycenW/GroupMeBotPython.git","ssh_url":"git@github.com:BrycenW/GroupMeBotPython.git","clone_url":"https://github.com/BrycenW/GroupMeBotPython.git","svn_url":"https://github.com/BrycenW/GroupMeBotPython","homepage":null,"size":5501,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/11"},"html":{"href":"https://github.com/BrycenW/GroupMeBotPython/pull/11"},"issue":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues/11"},"comments":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/BrycenW/GroupMeBotPython/statuses/e6760a90ac9967cdf5e7d4faa8f6463583c75f6f"}}}}