{"action":"closed","number":103,"pull_request":{"url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls/103","id":154672142,"html_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/pull/103","diff_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/pull/103.diff","patch_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/pull/103.patch","issue_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/103","number":103,"state":"closed","locked":false,"title":"Use stream","user":{"login":"spences10","id":234708,"avatar_url":"https://avatars2.githubusercontent.com/u/234708?v=4","gravatar_id":"","url":"https://api.github.com/users/spences10","html_url":"https://github.com/spences10","followers_url":"https://api.github.com/users/spences10/followers","following_url":"https://api.github.com/users/spences10/following{/other_user}","gists_url":"https://api.github.com/users/spences10/gists{/gist_id}","starred_url":"https://api.github.com/users/spences10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spences10/subscriptions","organizations_url":"https://api.github.com/users/spences10/orgs","repos_url":"https://api.github.com/users/spences10/repos","events_url":"https://api.github.com/users/spences10/events{/privacy}","received_events_url":"https://api.github.com/users/spences10/received_events","type":"User","site_admin":false},"body":"Added to use the `twit` stream in place of search which wasn't the most reliable way to find tweets on multiple search criteria, now there's a tweets object which has items from the twitter stream added to it to be popped off at a later time.\r\n\r\nThe `.env` file can now have the `QUERY_STRING` updated to include the required search terms separated with a comma:\r\n\r\n```\r\nQUERY_STRING=100daysofcode,301daysofcode,codenewbie\r\n```\r\n\r\nI've had to separate out `config.js` keys to cater for the additional `env` variables that are needed:\r\n\r\n```\r\nTWITTER_USERNAME=AccountNameToUse\r\nTWEET_TIME_OUT_MIN=10\r\nTWEET_TIME_OUT_MAX=1\r\nTWEET_QUEUE_TIME=10\r\n```\r\n\r\n`TWEET_QUEUE_TIME` is how often you want to check items in the `tweets` object, `TWEET_TIME_OUT_MIN` ...`_MAX` is the time delay added to the tweet object.\r\n\r\nThe above will run every ten minutes and assign a `timeOut` value to the `tweets` object between the two given `TWEET_TIME_OUT_MIN` ...`_MAX` values in this case between 1 and 10 minutes.\r\n\r\nCloses #86 ","created_at":"2017-11-26T09:58:51Z","updated_at":"2017-11-27T05:24:45Z","closed_at":"2017-11-27T05:24:45Z","merged_at":"2017-11-27T05:24:45Z","merge_commit_sha":"4b61987a0a9f7a2694adf74ca8ff16f39010f132","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls/103/commits","review_comments_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls/103/comments","review_comment_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/103/comments","statuses_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/statuses/0f45f5efb347394fc8423bc0ef1ec8548caf53dc","head":{"label":"spences10:use-stream","ref":"use-stream","sha":"0f45f5efb347394fc8423bc0ef1ec8548caf53dc","user":{"login":"spences10","id":234708,"avatar_url":"https://avatars2.githubusercontent.com/u/234708?v=4","gravatar_id":"","url":"https://api.github.com/users/spences10","html_url":"https://github.com/spences10","followers_url":"https://api.github.com/users/spences10/followers","following_url":"https://api.github.com/users/spences10/following{/other_user}","gists_url":"https://api.github.com/users/spences10/gists{/gist_id}","starred_url":"https://api.github.com/users/spences10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spences10/subscriptions","organizations_url":"https://api.github.com/users/spences10/orgs","repos_url":"https://api.github.com/users/spences10/repos","events_url":"https://api.github.com/users/spences10/events{/privacy}","received_events_url":"https://api.github.com/users/spences10/received_events","type":"User","site_admin":false},"repo":{"id":78287003,"name":"100DaysOfCode-twitter-bot","full_name":"spences10/100DaysOfCode-twitter-bot","owner":{"login":"spences10","id":234708,"avatar_url":"https://avatars2.githubusercontent.com/u/234708?v=4","gravatar_id":"","url":"https://api.github.com/users/spences10","html_url":"https://github.com/spences10","followers_url":"https://api.github.com/users/spences10/followers","following_url":"https://api.github.com/users/spences10/following{/other_user}","gists_url":"https://api.github.com/users/spences10/gists{/gist_id}","starred_url":"https://api.github.com/users/spences10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spences10/subscriptions","organizations_url":"https://api.github.com/users/spences10/orgs","repos_url":"https://api.github.com/users/spences10/repos","events_url":"https://api.github.com/users/spences10/events{/privacy}","received_events_url":"https://api.github.com/users/spences10/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spences10/100DaysOfCode-twitter-bot","description":"Twitter bot for #100DaysOfCode","fork":true,"url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot","forks_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/forks","keys_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/teams","hooks_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/hooks","issue_events_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/issues/events{/number}","events_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/events","assignees_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/assignees{/user}","branches_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/branches{/branch}","tags_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/tags","blobs_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/languages","stargazers_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/stargazers","contributors_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/contributors","subscribers_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/subscribers","subscription_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/subscription","commits_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/contents/{+path}","compare_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/merges","archive_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/downloads","issues_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/issues{/number}","pulls_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/labels{/name}","releases_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/releases{/id}","deployments_url":"https://api.github.com/repos/spences10/100DaysOfCode-twitter-bot/deployments","created_at":"2017-01-07T15:33:39Z","updated_at":"2017-01-07T15:33:41Z","pushed_at":"2017-11-26T12:40:09Z","git_url":"git://github.com/spences10/100DaysOfCode-twitter-bot.git","ssh_url":"git@github.com:spences10/100DaysOfCode-twitter-bot.git","clone_url":"https://github.com/spences10/100DaysOfCode-twitter-bot.git","svn_url":"https://github.com/spences10/100DaysOfCode-twitter-bot","homepage":"https://twitter.com/_100DaysOfCode","size":724,"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":1,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"freeCodeCamp:master","ref":"master","sha":"f030d3e39943750bf917e2820cc3dd6f8272da40","user":{"login":"freeCodeCamp","id":9892522,"avatar_url":"https://avatars0.githubusercontent.com/u/9892522?v=4","gravatar_id":"","url":"https://api.github.com/users/freeCodeCamp","html_url":"https://github.com/freeCodeCamp","followers_url":"https://api.github.com/users/freeCodeCamp/followers","following_url":"https://api.github.com/users/freeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/freeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/freeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/freeCodeCamp/orgs","repos_url":"https://api.github.com/users/freeCodeCamp/repos","events_url":"https://api.github.com/users/freeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/freeCodeCamp/received_events","type":"Organization","site_admin":false},"repo":{"id":61523197,"name":"100DaysOfCode-twitter-bot","full_name":"freeCodeCamp/100DaysOfCode-twitter-bot","owner":{"login":"freeCodeCamp","id":9892522,"avatar_url":"https://avatars0.githubusercontent.com/u/9892522?v=4","gravatar_id":"","url":"https://api.github.com/users/freeCodeCamp","html_url":"https://github.com/freeCodeCamp","followers_url":"https://api.github.com/users/freeCodeCamp/followers","following_url":"https://api.github.com/users/freeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/freeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/freeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/freeCodeCamp/orgs","repos_url":"https://api.github.com/users/freeCodeCamp/repos","events_url":"https://api.github.com/users/freeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/freeCodeCamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot","description":"Twitter bot for #100DaysOfCode","fork":false,"url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot","forks_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/forks","keys_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/teams","hooks_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/hooks","issue_events_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/events{/number}","events_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/events","assignees_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/assignees{/user}","branches_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/branches{/branch}","tags_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/tags","blobs_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/languages","stargazers_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/stargazers","contributors_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/contributors","subscribers_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/subscribers","subscription_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/subscription","commits_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/contents/{+path}","compare_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/merges","archive_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/downloads","issues_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues{/number}","pulls_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/labels{/name}","releases_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/releases{/id}","deployments_url":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/deployments","created_at":"2016-06-20T06:46:18Z","updated_at":"2017-11-25T01:35:42Z","pushed_at":"2017-11-27T05:24:45Z","git_url":"git://github.com/freeCodeCamp/100DaysOfCode-twitter-bot.git","ssh_url":"git@github.com:freeCodeCamp/100DaysOfCode-twitter-bot.git","clone_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot.git","svn_url":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot","homepage":"https://twitter.com/_100DaysOfCode","size":629,"stargazers_count":67,"watchers_count":67,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"archived":false,"open_issues_count":11,"forks":29,"open_issues":11,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls/103"},"html":{"href":"https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/pull/103"},"issue":{"href":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/103"},"comments":{"href":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/freeCodeCamp/100DaysOfCode-twitter-bot/statuses/0f45f5efb347394fc8423bc0ef1ec8548caf53dc"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"amandeepmittal","id":10234615,"avatar_url":"https://avatars2.githubusercontent.com/u/10234615?v=4","gravatar_id":"","url":"https://api.github.com/users/amandeepmittal","html_url":"https://github.com/amandeepmittal","followers_url":"https://api.github.com/users/amandeepmittal/followers","following_url":"https://api.github.com/users/amandeepmittal/following{/other_user}","gists_url":"https://api.github.com/users/amandeepmittal/gists{/gist_id}","starred_url":"https://api.github.com/users/amandeepmittal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amandeepmittal/subscriptions","organizations_url":"https://api.github.com/users/amandeepmittal/orgs","repos_url":"https://api.github.com/users/amandeepmittal/repos","events_url":"https://api.github.com/users/amandeepmittal/events{/privacy}","received_events_url":"https://api.github.com/users/amandeepmittal/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":16,"additions":610,"deletions":408,"changed_files":16}}
{"actor":{"display_login":"amandeepmittal"}}