{"action":"created","comment":{"url":"https://api.github.com/repos/night/BetterTTV/pulls/comments/154570013","pull_request_review_id":80749930,"id":154570013,"diff_hunk":"@@ -0,0 +1,47 @@\n+\n+const ENDPOINT = 'https://tmi.twitch.tv/';\n+\n+function get(path, options) {\n+    return fetch(`${ENDPOINT}${path}`, options);\n+}\n+\n+function toJson(response) {\n+    if (response.status >= 400) {\n+        throw response;\n+    }\n+    return response.json();\n+}\n+\n+function getHostedChannel(userId) {\n+    return get(`/hosts?include_logins=1&host=${userId}`)\n+        .then(toJson)\n+        .then(data => data && data.hosts && data.hosts[0]);\n+}\n+\n+function getChannelsHosting(userId) {\n+    return get(`/hosts?include_logins=1&target=${userId}`)\n+        .then(toJson)\n+        .then(data => data ? data.hosts : data);\n+}\n+\n+function getChatterCount(channelName) {\n+    if (!channelName) return Promise.resolve(0);\n+    return get(`/group/user/${channelName}`)\n+        .then(toJson)\n+        .then(data => data.chatter_count);\n+}\n+\n+function getChatters(channelName) {","path":"src/utils/tmi-api.js","position":34,"original_position":34,"commit_id":"6bcc7e1d6ed0bb7e137ff1a9c392d291c9218356","original_commit_id":"6bcc7e1d6ed0bb7e137ff1a9c392d291c9218356","user":{"login":"night","id":2942184,"avatar_url":"https://avatars0.githubusercontent.com/u/2942184?v=4","gravatar_id":"","url":"https://api.github.com/users/night","html_url":"https://github.com/night","followers_url":"https://api.github.com/users/night/followers","following_url":"https://api.github.com/users/night/following{/other_user}","gists_url":"https://api.github.com/users/night/gists{/gist_id}","starred_url":"https://api.github.com/users/night/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night/subscriptions","organizations_url":"https://api.github.com/users/night/orgs","repos_url":"https://api.github.com/users/night/repos","events_url":"https://api.github.com/users/night/events{/privacy}","received_events_url":"https://api.github.com/users/night/received_events","type":"User","site_admin":false},"body":"i dont think we need this endpoint","created_at":"2017-12-04T07:00:04Z","updated_at":"2017-12-04T07:00:04Z","html_url":"https://github.com/night/BetterTTV/pull/2833#discussion_r154570013","pull_request_url":"https://api.github.com/repos/night/BetterTTV/pulls/2833","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/night/BetterTTV/pulls/comments/154570013"},"html":{"href":"https://github.com/night/BetterTTV/pull/2833#discussion_r154570013"},"pull_request":{"href":"https://api.github.com/repos/night/BetterTTV/pulls/2833"}}},"pull_request":{"url":"https://api.github.com/repos/night/BetterTTV/pulls/2833","id":156035245,"html_url":"https://github.com/night/BetterTTV/pull/2833","diff_url":"https://github.com/night/BetterTTV/pull/2833.diff","patch_url":"https://github.com/night/BetterTTV/pull/2833.patch","issue_url":"https://api.github.com/repos/night/BetterTTV/issues/2833","number":2833,"state":"open","locked":false,"title":"[new-twitch] [Feat] Anon chat & Chat Commands","user":{"login":"DayBr3ak","id":6201498,"avatar_url":"https://avatars1.githubusercontent.com/u/6201498?v=4","gravatar_id":"","url":"https://api.github.com/users/DayBr3ak","html_url":"https://github.com/DayBr3ak","followers_url":"https://api.github.com/users/DayBr3ak/followers","following_url":"https://api.github.com/users/DayBr3ak/following{/other_user}","gists_url":"https://api.github.com/users/DayBr3ak/gists{/gist_id}","starred_url":"https://api.github.com/users/DayBr3ak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DayBr3ak/subscriptions","organizations_url":"https://api.github.com/users/DayBr3ak/orgs","repos_url":"https://api.github.com/users/DayBr3ak/repos","events_url":"https://api.github.com/users/DayBr3ak/events{/privacy}","received_events_url":"https://api.github.com/users/DayBr3ak/received_events","type":"User","site_admin":false},"body":"Refactored the old versions features. Everything seems to be working. I Enjoy self sub mode very much :) .\r\n\r\nI plan to change tab completion OnSendMessage (from my PR on tab completion #2819 ) if this PR is accepted.","created_at":"2017-12-02T22:43:16Z","updated_at":"2017-12-04T07:00:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fdc86db4c1cddedee8b3140a7bbd812de4d989e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/night/BetterTTV/pulls/2833/commits","review_comments_url":"https://api.github.com/repos/night/BetterTTV/pulls/2833/comments","review_comment_url":"https://api.github.com/repos/night/BetterTTV/pulls/comments{/number}","comments_url":"https://api.github.com/repos/night/BetterTTV/issues/2833/comments","statuses_url":"https://api.github.com/repos/night/BetterTTV/statuses/6bcc7e1d6ed0bb7e137ff1a9c392d291c9218356","head":{"label":"DayBr3ak:chat-commands","ref":"chat-commands","sha":"6bcc7e1d6ed0bb7e137ff1a9c392d291c9218356","user":{"login":"DayBr3ak","id":6201498,"avatar_url":"https://avatars1.githubusercontent.com/u/6201498?v=4","gravatar_id":"","url":"https://api.github.com/users/DayBr3ak","html_url":"https://github.com/DayBr3ak","followers_url":"https://api.github.com/users/DayBr3ak/followers","following_url":"https://api.github.com/users/DayBr3ak/following{/other_user}","gists_url":"https://api.github.com/users/DayBr3ak/gists{/gist_id}","starred_url":"https://api.github.com/users/DayBr3ak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DayBr3ak/subscriptions","organizations_url":"https://api.github.com/users/DayBr3ak/orgs","repos_url":"https://api.github.com/users/DayBr3ak/repos","events_url":"https://api.github.com/users/DayBr3ak/events{/privacy}","received_events_url":"https://api.github.com/users/DayBr3ak/received_events","type":"User","site_admin":false},"repo":{"id":112401774,"name":"BetterTTV","full_name":"DayBr3ak/BetterTTV","owner":{"login":"DayBr3ak","id":6201498,"avatar_url":"https://avatars1.githubusercontent.com/u/6201498?v=4","gravatar_id":"","url":"https://api.github.com/users/DayBr3ak","html_url":"https://github.com/DayBr3ak","followers_url":"https://api.github.com/users/DayBr3ak/followers","following_url":"https://api.github.com/users/DayBr3ak/following{/other_user}","gists_url":"https://api.github.com/users/DayBr3ak/gists{/gist_id}","starred_url":"https://api.github.com/users/DayBr3ak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DayBr3ak/subscriptions","organizations_url":"https://api.github.com/users/DayBr3ak/orgs","repos_url":"https://api.github.com/users/DayBr3ak/repos","events_url":"https://api.github.com/users/DayBr3ak/events{/privacy}","received_events_url":"https://api.github.com/users/DayBr3ak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DayBr3ak/BetterTTV","description":"BetterTTV enhances Twitch with new features, emotes, and more.","fork":true,"url":"https://api.github.com/repos/DayBr3ak/BetterTTV","forks_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/forks","keys_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/teams","hooks_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/hooks","issue_events_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/issues/events{/number}","events_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/events","assignees_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/assignees{/user}","branches_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/branches{/branch}","tags_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/tags","blobs_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/git/refs{/sha}","trees_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/statuses/{sha}","languages_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/languages","stargazers_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/stargazers","contributors_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/contributors","subscribers_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/subscribers","subscription_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/subscription","commits_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/commits{/sha}","git_commits_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/git/commits{/sha}","comments_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/comments{/number}","issue_comment_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/issues/comments{/number}","contents_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/contents/{+path}","compare_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/merges","archive_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/downloads","issues_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/issues{/number}","pulls_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/pulls{/number}","milestones_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/milestones{/number}","notifications_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/labels{/name}","releases_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/releases{/id}","deployments_url":"https://api.github.com/repos/DayBr3ak/BetterTTV/deployments","created_at":"2017-11-28T23:35:31Z","updated_at":"2017-11-28T23:35:33Z","pushed_at":"2017-12-04T04:31:21Z","git_url":"git://github.com/DayBr3ak/BetterTTV.git","ssh_url":"git@github.com:DayBr3ak/BetterTTV.git","clone_url":"https://github.com/DayBr3ak/BetterTTV.git","svn_url":"https://github.com/DayBr3ak/BetterTTV","homepage":"http://betterttv.com","size":6259,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"night:new-twitch","ref":"new-twitch","sha":"42f9142f2ac57cbf5c7cb4d4d979a77339480bea","user":{"login":"night","id":2942184,"avatar_url":"https://avatars0.githubusercontent.com/u/2942184?v=4","gravatar_id":"","url":"https://api.github.com/users/night","html_url":"https://github.com/night","followers_url":"https://api.github.com/users/night/followers","following_url":"https://api.github.com/users/night/following{/other_user}","gists_url":"https://api.github.com/users/night/gists{/gist_id}","starred_url":"https://api.github.com/users/night/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night/subscriptions","organizations_url":"https://api.github.com/users/night/orgs","repos_url":"https://api.github.com/users/night/repos","events_url":"https://api.github.com/users/night/events{/privacy}","received_events_url":"https://api.github.com/users/night/received_events","type":"User","site_admin":false},"repo":{"id":19358114,"name":"BetterTTV","full_name":"night/BetterTTV","owner":{"login":"night","id":2942184,"avatar_url":"https://avatars0.githubusercontent.com/u/2942184?v=4","gravatar_id":"","url":"https://api.github.com/users/night","html_url":"https://github.com/night","followers_url":"https://api.github.com/users/night/followers","following_url":"https://api.github.com/users/night/following{/other_user}","gists_url":"https://api.github.com/users/night/gists{/gist_id}","starred_url":"https://api.github.com/users/night/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night/subscriptions","organizations_url":"https://api.github.com/users/night/orgs","repos_url":"https://api.github.com/users/night/repos","events_url":"https://api.github.com/users/night/events{/privacy}","received_events_url":"https://api.github.com/users/night/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/night/BetterTTV","description":"BetterTTV enhances Twitch with new features, emotes, and more.","fork":false,"url":"https://api.github.com/repos/night/BetterTTV","forks_url":"https://api.github.com/repos/night/BetterTTV/forks","keys_url":"https://api.github.com/repos/night/BetterTTV/keys{/key_id}","collaborators_url":"https://api.github.com/repos/night/BetterTTV/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/night/BetterTTV/teams","hooks_url":"https://api.github.com/repos/night/BetterTTV/hooks","issue_events_url":"https://api.github.com/repos/night/BetterTTV/issues/events{/number}","events_url":"https://api.github.com/repos/night/BetterTTV/events","assignees_url":"https://api.github.com/repos/night/BetterTTV/assignees{/user}","branches_url":"https://api.github.com/repos/night/BetterTTV/branches{/branch}","tags_url":"https://api.github.com/repos/night/BetterTTV/tags","blobs_url":"https://api.github.com/repos/night/BetterTTV/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/night/BetterTTV/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/night/BetterTTV/git/refs{/sha}","trees_url":"https://api.github.com/repos/night/BetterTTV/git/trees{/sha}","statuses_url":"https://api.github.com/repos/night/BetterTTV/statuses/{sha}","languages_url":"https://api.github.com/repos/night/BetterTTV/languages","stargazers_url":"https://api.github.com/repos/night/BetterTTV/stargazers","contributors_url":"https://api.github.com/repos/night/BetterTTV/contributors","subscribers_url":"https://api.github.com/repos/night/BetterTTV/subscribers","subscription_url":"https://api.github.com/repos/night/BetterTTV/subscription","commits_url":"https://api.github.com/repos/night/BetterTTV/commits{/sha}","git_commits_url":"https://api.github.com/repos/night/BetterTTV/git/commits{/sha}","comments_url":"https://api.github.com/repos/night/BetterTTV/comments{/number}","issue_comment_url":"https://api.github.com/repos/night/BetterTTV/issues/comments{/number}","contents_url":"https://api.github.com/repos/night/BetterTTV/contents/{+path}","compare_url":"https://api.github.com/repos/night/BetterTTV/compare/{base}...{head}","merges_url":"https://api.github.com/repos/night/BetterTTV/merges","archive_url":"https://api.github.com/repos/night/BetterTTV/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/night/BetterTTV/downloads","issues_url":"https://api.github.com/repos/night/BetterTTV/issues{/number}","pulls_url":"https://api.github.com/repos/night/BetterTTV/pulls{/number}","milestones_url":"https://api.github.com/repos/night/BetterTTV/milestones{/number}","notifications_url":"https://api.github.com/repos/night/BetterTTV/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/night/BetterTTV/labels{/name}","releases_url":"https://api.github.com/repos/night/BetterTTV/releases{/id}","deployments_url":"https://api.github.com/repos/night/BetterTTV/deployments","created_at":"2014-05-01T21:15:17Z","updated_at":"2017-12-04T04:37:05Z","pushed_at":"2017-12-04T06:28:45Z","git_url":"git://github.com/night/BetterTTV.git","ssh_url":"git@github.com:night/BetterTTV.git","clone_url":"https://github.com/night/BetterTTV.git","svn_url":"https://github.com/night/BetterTTV","homepage":"http://betterttv.com","size":6218,"stargazers_count":348,"watchers_count":348,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":139,"mirror_url":null,"archived":false,"open_issues_count":109,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":139,"open_issues":109,"watchers":348,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/night/BetterTTV/pulls/2833"},"html":{"href":"https://github.com/night/BetterTTV/pull/2833"},"issue":{"href":"https://api.github.com/repos/night/BetterTTV/issues/2833"},"comments":{"href":"https://api.github.com/repos/night/BetterTTV/issues/2833/comments"},"review_comments":{"href":"https://api.github.com/repos/night/BetterTTV/pulls/2833/comments"},"review_comment":{"href":"https://api.github.com/repos/night/BetterTTV/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/night/BetterTTV/pulls/2833/commits"},"statuses":{"href":"https://api.github.com/repos/night/BetterTTV/statuses/6bcc7e1d6ed0bb7e137ff1a9c392d291c9218356"}},"author_association":"NONE"}}
{"actor":{"display_login":"night"}}