{"action":"created","comment":{"url":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/comments/174294344","pull_request_review_id":103623549,"id":174294344,"diff_hunk":"@@ -192,40 +191,40 @@ export default class OfficeHours {\n \n         // Request last close message from Discord\n         channel.fetchMessage(this.data.lastCloseMessage)\n-        .then(closeMessage => {\n-            // Find all users that raised their hand\n-            const reactions = closeMessage.reactions.get(\"✋\");\n-            if (reactions) {\n-                const usersToMention = reactions.users.array().filter(user => !user.bot);\n-                if (usersToMention.length > 0) \n-                    channel.send(usersToMention.join(\", \") + \"\\n\");\n-            }\n-\n-            this.sendOnThisDayMessage(channel);\n-        })\n-        .catch(reason => {\n-            console.warn(\"Failed getting last close message: \" + reason);\n-            this.sendOnThisDayMessage(channel);\n-        });\n+            .then(closeMessage => {\n+                // Find all users that raised their hand\n+                const reactions = closeMessage.reactions.get(\"✋\");\n+                if (reactions) {\n+                    const usersToMention = reactions.users.array().filter(user => !user.bot);\n+                    if (usersToMention.length > 0)\n+                        channel.send(usersToMention.join(\", \") + \"\\n\");\n+                }\n+\n+                this.sendOnThisDayMessage(channel);\n+            })\n+            .catch(reason => {\n+                console.warn(\"Failed getting last close message: \" + reason);\n+                this.sendOnThisDayMessage(channel);\n+            });","path":"src/OfficeHours.ts","position":208,"original_position":208,"commit_id":"f3c510956df2c194dc02007a0da95d410886436d","original_commit_id":"f3c510956df2c194dc02007a0da95d410886436d","user":{"login":"molenzwiebel","id":3594254,"avatar_url":"https://avatars1.githubusercontent.com/u/3594254?v=4","gravatar_id":"","url":"https://api.github.com/users/molenzwiebel","html_url":"https://github.com/molenzwiebel","followers_url":"https://api.github.com/users/molenzwiebel/followers","following_url":"https://api.github.com/users/molenzwiebel/following{/other_user}","gists_url":"https://api.github.com/users/molenzwiebel/gists{/gist_id}","starred_url":"https://api.github.com/users/molenzwiebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molenzwiebel/subscriptions","organizations_url":"https://api.github.com/users/molenzwiebel/orgs","repos_url":"https://api.github.com/users/molenzwiebel/repos","events_url":"https://api.github.com/users/molenzwiebel/events{/privacy}","received_events_url":"https://api.github.com/users/molenzwiebel/received_events","type":"User","site_admin":false},"body":"This can also be async (the method is already async lul)","created_at":"2018-03-13T21:43:09Z","updated_at":"2018-03-13T21:44:47Z","html_url":"https://github.com/Querijn/BottyMcBotface/pull/26#discussion_r174294344","pull_request_url":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/26","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/comments/174294344"},"html":{"href":"https://github.com/Querijn/BottyMcBotface/pull/26#discussion_r174294344"},"pull_request":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/26","id":174786443,"html_url":"https://github.com/Querijn/BottyMcBotface/pull/26","diff_url":"https://github.com/Querijn/BottyMcBotface/pull/26.diff","patch_url":"https://github.com/Querijn/BottyMcBotface/pull/26.patch","issue_url":"https://api.github.com/repos/Querijn/BottyMcBotface/issues/26","number":26,"state":"open","locked":false,"title":"Add command manager","user":{"login":"stelar7","id":940154,"avatar_url":"https://avatars2.githubusercontent.com/u/940154?v=4","gravatar_id":"","url":"https://api.github.com/users/stelar7","html_url":"https://github.com/stelar7","followers_url":"https://api.github.com/users/stelar7/followers","following_url":"https://api.github.com/users/stelar7/following{/other_user}","gists_url":"https://api.github.com/users/stelar7/gists{/gist_id}","starred_url":"https://api.github.com/users/stelar7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelar7/subscriptions","organizations_url":"https://api.github.com/users/stelar7/orgs","repos_url":"https://api.github.com/users/stelar7/repos","events_url":"https://api.github.com/users/stelar7/events{/privacy}","received_events_url":"https://api.github.com/users/stelar7/received_events","type":"User","site_admin":false},"body":"fixes #24 (except it doesnt use that lib...)","created_at":"2018-03-13T20:52:49Z","updated_at":"2018-03-13T21:44:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcd7b68d631b14f7b06c3e7f32a1e92be4127a1c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/26/commits","review_comments_url":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/26/comments","review_comment_url":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Querijn/BottyMcBotface/issues/26/comments","statuses_url":"https://api.github.com/repos/Querijn/BottyMcBotface/statuses/f3c510956df2c194dc02007a0da95d410886436d","head":{"label":"stelar7:commands","ref":"commands","sha":"f3c510956df2c194dc02007a0da95d410886436d","user":{"login":"stelar7","id":940154,"avatar_url":"https://avatars2.githubusercontent.com/u/940154?v=4","gravatar_id":"","url":"https://api.github.com/users/stelar7","html_url":"https://github.com/stelar7","followers_url":"https://api.github.com/users/stelar7/followers","following_url":"https://api.github.com/users/stelar7/following{/other_user}","gists_url":"https://api.github.com/users/stelar7/gists{/gist_id}","starred_url":"https://api.github.com/users/stelar7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelar7/subscriptions","organizations_url":"https://api.github.com/users/stelar7/orgs","repos_url":"https://api.github.com/users/stelar7/repos","events_url":"https://api.github.com/users/stelar7/events{/privacy}","received_events_url":"https://api.github.com/users/stelar7/received_events","type":"User","site_admin":false},"repo":{"id":124522241,"name":"BottyMcBotface","full_name":"stelar7/BottyMcBotface","owner":{"login":"stelar7","id":940154,"avatar_url":"https://avatars2.githubusercontent.com/u/940154?v=4","gravatar_id":"","url":"https://api.github.com/users/stelar7","html_url":"https://github.com/stelar7","followers_url":"https://api.github.com/users/stelar7/followers","following_url":"https://api.github.com/users/stelar7/following{/other_user}","gists_url":"https://api.github.com/users/stelar7/gists{/gist_id}","starred_url":"https://api.github.com/users/stelar7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelar7/subscriptions","organizations_url":"https://api.github.com/users/stelar7/orgs","repos_url":"https://api.github.com/users/stelar7/repos","events_url":"https://api.github.com/users/stelar7/events{/privacy}","received_events_url":"https://api.github.com/users/stelar7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stelar7/BottyMcBotface","description":"The Riot Games API Bot","fork":true,"url":"https://api.github.com/repos/stelar7/BottyMcBotface","forks_url":"https://api.github.com/repos/stelar7/BottyMcBotface/forks","keys_url":"https://api.github.com/repos/stelar7/BottyMcBotface/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stelar7/BottyMcBotface/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stelar7/BottyMcBotface/teams","hooks_url":"https://api.github.com/repos/stelar7/BottyMcBotface/hooks","issue_events_url":"https://api.github.com/repos/stelar7/BottyMcBotface/issues/events{/number}","events_url":"https://api.github.com/repos/stelar7/BottyMcBotface/events","assignees_url":"https://api.github.com/repos/stelar7/BottyMcBotface/assignees{/user}","branches_url":"https://api.github.com/repos/stelar7/BottyMcBotface/branches{/branch}","tags_url":"https://api.github.com/repos/stelar7/BottyMcBotface/tags","blobs_url":"https://api.github.com/repos/stelar7/BottyMcBotface/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stelar7/BottyMcBotface/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stelar7/BottyMcBotface/git/refs{/sha}","trees_url":"https://api.github.com/repos/stelar7/BottyMcBotface/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stelar7/BottyMcBotface/statuses/{sha}","languages_url":"https://api.github.com/repos/stelar7/BottyMcBotface/languages","stargazers_url":"https://api.github.com/repos/stelar7/BottyMcBotface/stargazers","contributors_url":"https://api.github.com/repos/stelar7/BottyMcBotface/contributors","subscribers_url":"https://api.github.com/repos/stelar7/BottyMcBotface/subscribers","subscription_url":"https://api.github.com/repos/stelar7/BottyMcBotface/subscription","commits_url":"https://api.github.com/repos/stelar7/BottyMcBotface/commits{/sha}","git_commits_url":"https://api.github.com/repos/stelar7/BottyMcBotface/git/commits{/sha}","comments_url":"https://api.github.com/repos/stelar7/BottyMcBotface/comments{/number}","issue_comment_url":"https://api.github.com/repos/stelar7/BottyMcBotface/issues/comments{/number}","contents_url":"https://api.github.com/repos/stelar7/BottyMcBotface/contents/{+path}","compare_url":"https://api.github.com/repos/stelar7/BottyMcBotface/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stelar7/BottyMcBotface/merges","archive_url":"https://api.github.com/repos/stelar7/BottyMcBotface/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stelar7/BottyMcBotface/downloads","issues_url":"https://api.github.com/repos/stelar7/BottyMcBotface/issues{/number}","pulls_url":"https://api.github.com/repos/stelar7/BottyMcBotface/pulls{/number}","milestones_url":"https://api.github.com/repos/stelar7/BottyMcBotface/milestones{/number}","notifications_url":"https://api.github.com/repos/stelar7/BottyMcBotface/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stelar7/BottyMcBotface/labels{/name}","releases_url":"https://api.github.com/repos/stelar7/BottyMcBotface/releases{/id}","deployments_url":"https://api.github.com/repos/stelar7/BottyMcBotface/deployments","created_at":"2018-03-09T09:56:49Z","updated_at":"2018-03-09T09:56:51Z","pushed_at":"2018-03-13T21:08:43Z","git_url":"git://github.com/stelar7/BottyMcBotface.git","ssh_url":"git@github.com:stelar7/BottyMcBotface.git","clone_url":"https://github.com/stelar7/BottyMcBotface.git","svn_url":"https://github.com/stelar7/BottyMcBotface","homepage":null,"size":213,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Querijn:master","ref":"master","sha":"80a62a2a5f81f583399d441169614111b2de3e86","user":{"login":"Querijn","id":3397066,"avatar_url":"https://avatars2.githubusercontent.com/u/3397066?v=4","gravatar_id":"","url":"https://api.github.com/users/Querijn","html_url":"https://github.com/Querijn","followers_url":"https://api.github.com/users/Querijn/followers","following_url":"https://api.github.com/users/Querijn/following{/other_user}","gists_url":"https://api.github.com/users/Querijn/gists{/gist_id}","starred_url":"https://api.github.com/users/Querijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Querijn/subscriptions","organizations_url":"https://api.github.com/users/Querijn/orgs","repos_url":"https://api.github.com/users/Querijn/repos","events_url":"https://api.github.com/users/Querijn/events{/privacy}","received_events_url":"https://api.github.com/users/Querijn/received_events","type":"User","site_admin":false},"repo":{"id":99312539,"name":"BottyMcBotface","full_name":"Querijn/BottyMcBotface","owner":{"login":"Querijn","id":3397066,"avatar_url":"https://avatars2.githubusercontent.com/u/3397066?v=4","gravatar_id":"","url":"https://api.github.com/users/Querijn","html_url":"https://github.com/Querijn","followers_url":"https://api.github.com/users/Querijn/followers","following_url":"https://api.github.com/users/Querijn/following{/other_user}","gists_url":"https://api.github.com/users/Querijn/gists{/gist_id}","starred_url":"https://api.github.com/users/Querijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Querijn/subscriptions","organizations_url":"https://api.github.com/users/Querijn/orgs","repos_url":"https://api.github.com/users/Querijn/repos","events_url":"https://api.github.com/users/Querijn/events{/privacy}","received_events_url":"https://api.github.com/users/Querijn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Querijn/BottyMcBotface","description":"The Riot Games API Bot","fork":false,"url":"https://api.github.com/repos/Querijn/BottyMcBotface","forks_url":"https://api.github.com/repos/Querijn/BottyMcBotface/forks","keys_url":"https://api.github.com/repos/Querijn/BottyMcBotface/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Querijn/BottyMcBotface/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Querijn/BottyMcBotface/teams","hooks_url":"https://api.github.com/repos/Querijn/BottyMcBotface/hooks","issue_events_url":"https://api.github.com/repos/Querijn/BottyMcBotface/issues/events{/number}","events_url":"https://api.github.com/repos/Querijn/BottyMcBotface/events","assignees_url":"https://api.github.com/repos/Querijn/BottyMcBotface/assignees{/user}","branches_url":"https://api.github.com/repos/Querijn/BottyMcBotface/branches{/branch}","tags_url":"https://api.github.com/repos/Querijn/BottyMcBotface/tags","blobs_url":"https://api.github.com/repos/Querijn/BottyMcBotface/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Querijn/BottyMcBotface/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Querijn/BottyMcBotface/git/refs{/sha}","trees_url":"https://api.github.com/repos/Querijn/BottyMcBotface/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Querijn/BottyMcBotface/statuses/{sha}","languages_url":"https://api.github.com/repos/Querijn/BottyMcBotface/languages","stargazers_url":"https://api.github.com/repos/Querijn/BottyMcBotface/stargazers","contributors_url":"https://api.github.com/repos/Querijn/BottyMcBotface/contributors","subscribers_url":"https://api.github.com/repos/Querijn/BottyMcBotface/subscribers","subscription_url":"https://api.github.com/repos/Querijn/BottyMcBotface/subscription","commits_url":"https://api.github.com/repos/Querijn/BottyMcBotface/commits{/sha}","git_commits_url":"https://api.github.com/repos/Querijn/BottyMcBotface/git/commits{/sha}","comments_url":"https://api.github.com/repos/Querijn/BottyMcBotface/comments{/number}","issue_comment_url":"https://api.github.com/repos/Querijn/BottyMcBotface/issues/comments{/number}","contents_url":"https://api.github.com/repos/Querijn/BottyMcBotface/contents/{+path}","compare_url":"https://api.github.com/repos/Querijn/BottyMcBotface/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Querijn/BottyMcBotface/merges","archive_url":"https://api.github.com/repos/Querijn/BottyMcBotface/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Querijn/BottyMcBotface/downloads","issues_url":"https://api.github.com/repos/Querijn/BottyMcBotface/issues{/number}","pulls_url":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls{/number}","milestones_url":"https://api.github.com/repos/Querijn/BottyMcBotface/milestones{/number}","notifications_url":"https://api.github.com/repos/Querijn/BottyMcBotface/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Querijn/BottyMcBotface/labels{/name}","releases_url":"https://api.github.com/repos/Querijn/BottyMcBotface/releases{/id}","deployments_url":"https://api.github.com/repos/Querijn/BottyMcBotface/deployments","created_at":"2017-08-04T06:47:34Z","updated_at":"2018-03-13T06:15:00Z","pushed_at":"2018-03-13T21:08:44Z","git_url":"git://github.com/Querijn/BottyMcBotface.git","ssh_url":"git@github.com:Querijn/BottyMcBotface.git","clone_url":"https://github.com/Querijn/BottyMcBotface.git","svn_url":"https://github.com/Querijn/BottyMcBotface","homepage":null,"size":205,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":7,"open_issues":7,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/26"},"html":{"href":"https://github.com/Querijn/BottyMcBotface/pull/26"},"issue":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/issues/26"},"comments":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/Querijn/BottyMcBotface/statuses/f3c510956df2c194dc02007a0da95d410886436d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"molenzwiebel"}}