{"action":"created","comment":{"url":"https://api.github.com/repos/alandoni/fifa-champs/pulls/comments/166938771","pull_request_review_id":95077106,"id":166938771,"diff_hunk":"@@ -0,0 +1,57 @@\n+const request = require('request-promise');\n+\n+const pattern = /^add match (.*) (.*) (\\d+)\\s*x\\s*(\\d+) (.*) (.*)$/;\n+const seasonOptions = {\n+  url: 'http://localhost:5001/api/championships',","path":"api/integrations/fifabot/commands/addMatch.js","position":5,"original_position":5,"commit_id":"5e938dbcf5f70c89217fa96e7f1d18c885d1cc66","original_commit_id":"5e938dbcf5f70c89217fa96e7f1d18c885d1cc66","user":{"login":"cristiadu","id":20186561,"avatar_url":"https://avatars0.githubusercontent.com/u/20186561?v=4","gravatar_id":"","url":"https://api.github.com/users/cristiadu","html_url":"https://github.com/cristiadu","followers_url":"https://api.github.com/users/cristiadu/followers","following_url":"https://api.github.com/users/cristiadu/following{/other_user}","gists_url":"https://api.github.com/users/cristiadu/gists{/gist_id}","starred_url":"https://api.github.com/users/cristiadu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristiadu/subscriptions","organizations_url":"https://api.github.com/users/cristiadu/orgs","repos_url":"https://api.github.com/users/cristiadu/repos","events_url":"https://api.github.com/users/cristiadu/events{/privacy}","received_events_url":"https://api.github.com/users/cristiadu/received_events","type":"User","site_admin":false},"body":"This will be changed later on to use the environment variables, right? Localhost isn't going to be the correct one.\r\n\r\nAlso, can't you use the baseAPI url and just concatenate with the specific endpoint later on?","created_at":"2018-02-08T13:53:03Z","updated_at":"2018-02-08T14:03:43Z","html_url":"https://github.com/alandoni/fifa-champs/pull/132#discussion_r166938771","pull_request_url":"https://api.github.com/repos/alandoni/fifa-champs/pulls/132","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/alandoni/fifa-champs/pulls/comments/166938771"},"html":{"href":"https://github.com/alandoni/fifa-champs/pull/132#discussion_r166938771"},"pull_request":{"href":"https://api.github.com/repos/alandoni/fifa-champs/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/alandoni/fifa-champs/pulls/132","id":167865589,"html_url":"https://github.com/alandoni/fifa-champs/pull/132","diff_url":"https://github.com/alandoni/fifa-champs/pull/132.diff","patch_url":"https://github.com/alandoni/fifa-champs/pull/132.patch","issue_url":"https://api.github.com/repos/alandoni/fifa-champs/issues/132","number":132,"state":"open","locked":false,"title":"fifa-champs integration with slack bot @edsonbastos","user":{"login":"talesprates","id":11711603,"avatar_url":"https://avatars1.githubusercontent.com/u/11711603?v=4","gravatar_id":"","url":"https://api.github.com/users/talesprates","html_url":"https://github.com/talesprates","followers_url":"https://api.github.com/users/talesprates/followers","following_url":"https://api.github.com/users/talesprates/following{/other_user}","gists_url":"https://api.github.com/users/talesprates/gists{/gist_id}","starred_url":"https://api.github.com/users/talesprates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talesprates/subscriptions","organizations_url":"https://api.github.com/users/talesprates/orgs","repos_url":"https://api.github.com/users/talesprates/repos","events_url":"https://api.github.com/users/talesprates/events{/privacy}","received_events_url":"https://api.github.com/users/talesprates/received_events","type":"User","site_admin":false},"body":"this pull request is going to add the slack bot user named @edsonbastos that will enable admin users to run commands through fiao (or any other slack) slack chat. The only commands implemented will be add match, add final, and help.","created_at":"2018-02-08T02:58:21Z","updated_at":"2018-02-08T14:03:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/alandoni/fifa-champs/pulls/132/commits","review_comments_url":"https://api.github.com/repos/alandoni/fifa-champs/pulls/132/comments","review_comment_url":"https://api.github.com/repos/alandoni/fifa-champs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alandoni/fifa-champs/issues/132/comments","statuses_url":"https://api.github.com/repos/alandoni/fifa-champs/statuses/5e938dbcf5f70c89217fa96e7f1d18c885d1cc66","head":{"label":"talesprates:fifabot","ref":"fifabot","sha":"5e938dbcf5f70c89217fa96e7f1d18c885d1cc66","user":{"login":"talesprates","id":11711603,"avatar_url":"https://avatars1.githubusercontent.com/u/11711603?v=4","gravatar_id":"","url":"https://api.github.com/users/talesprates","html_url":"https://github.com/talesprates","followers_url":"https://api.github.com/users/talesprates/followers","following_url":"https://api.github.com/users/talesprates/following{/other_user}","gists_url":"https://api.github.com/users/talesprates/gists{/gist_id}","starred_url":"https://api.github.com/users/talesprates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talesprates/subscriptions","organizations_url":"https://api.github.com/users/talesprates/orgs","repos_url":"https://api.github.com/users/talesprates/repos","events_url":"https://api.github.com/users/talesprates/events{/privacy}","received_events_url":"https://api.github.com/users/talesprates/received_events","type":"User","site_admin":false},"repo":{"id":118836051,"name":"fifa-champs","full_name":"talesprates/fifa-champs","owner":{"login":"talesprates","id":11711603,"avatar_url":"https://avatars1.githubusercontent.com/u/11711603?v=4","gravatar_id":"","url":"https://api.github.com/users/talesprates","html_url":"https://github.com/talesprates","followers_url":"https://api.github.com/users/talesprates/followers","following_url":"https://api.github.com/users/talesprates/following{/other_user}","gists_url":"https://api.github.com/users/talesprates/gists{/gist_id}","starred_url":"https://api.github.com/users/talesprates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talesprates/subscriptions","organizations_url":"https://api.github.com/users/talesprates/orgs","repos_url":"https://api.github.com/users/talesprates/repos","events_url":"https://api.github.com/users/talesprates/events{/privacy}","received_events_url":"https://api.github.com/users/talesprates/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/talesprates/fifa-champs","description":null,"fork":true,"url":"https://api.github.com/repos/talesprates/fifa-champs","forks_url":"https://api.github.com/repos/talesprates/fifa-champs/forks","keys_url":"https://api.github.com/repos/talesprates/fifa-champs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/talesprates/fifa-champs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/talesprates/fifa-champs/teams","hooks_url":"https://api.github.com/repos/talesprates/fifa-champs/hooks","issue_events_url":"https://api.github.com/repos/talesprates/fifa-champs/issues/events{/number}","events_url":"https://api.github.com/repos/talesprates/fifa-champs/events","assignees_url":"https://api.github.com/repos/talesprates/fifa-champs/assignees{/user}","branches_url":"https://api.github.com/repos/talesprates/fifa-champs/branches{/branch}","tags_url":"https://api.github.com/repos/talesprates/fifa-champs/tags","blobs_url":"https://api.github.com/repos/talesprates/fifa-champs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/talesprates/fifa-champs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/talesprates/fifa-champs/git/refs{/sha}","trees_url":"https://api.github.com/repos/talesprates/fifa-champs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/talesprates/fifa-champs/statuses/{sha}","languages_url":"https://api.github.com/repos/talesprates/fifa-champs/languages","stargazers_url":"https://api.github.com/repos/talesprates/fifa-champs/stargazers","contributors_url":"https://api.github.com/repos/talesprates/fifa-champs/contributors","subscribers_url":"https://api.github.com/repos/talesprates/fifa-champs/subscribers","subscription_url":"https://api.github.com/repos/talesprates/fifa-champs/subscription","commits_url":"https://api.github.com/repos/talesprates/fifa-champs/commits{/sha}","git_commits_url":"https://api.github.com/repos/talesprates/fifa-champs/git/commits{/sha}","comments_url":"https://api.github.com/repos/talesprates/fifa-champs/comments{/number}","issue_comment_url":"https://api.github.com/repos/talesprates/fifa-champs/issues/comments{/number}","contents_url":"https://api.github.com/repos/talesprates/fifa-champs/contents/{+path}","compare_url":"https://api.github.com/repos/talesprates/fifa-champs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/talesprates/fifa-champs/merges","archive_url":"https://api.github.com/repos/talesprates/fifa-champs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/talesprates/fifa-champs/downloads","issues_url":"https://api.github.com/repos/talesprates/fifa-champs/issues{/number}","pulls_url":"https://api.github.com/repos/talesprates/fifa-champs/pulls{/number}","milestones_url":"https://api.github.com/repos/talesprates/fifa-champs/milestones{/number}","notifications_url":"https://api.github.com/repos/talesprates/fifa-champs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/talesprates/fifa-champs/labels{/name}","releases_url":"https://api.github.com/repos/talesprates/fifa-champs/releases{/id}","deployments_url":"https://api.github.com/repos/talesprates/fifa-champs/deployments","created_at":"2018-01-24T23:38:52Z","updated_at":"2018-01-24T23:38:54Z","pushed_at":"2018-02-08T13:05:26Z","git_url":"git://github.com/talesprates/fifa-champs.git","ssh_url":"git@github.com:talesprates/fifa-champs.git","clone_url":"https://github.com/talesprates/fifa-champs.git","svn_url":"https://github.com/talesprates/fifa-champs","homepage":null,"size":3084,"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":"alandoni:master","ref":"master","sha":"88ce0d8a5b409ee5d026aa6b10c3a6e0cee10ced","user":{"login":"alandoni","id":12752268,"avatar_url":"https://avatars0.githubusercontent.com/u/12752268?v=4","gravatar_id":"","url":"https://api.github.com/users/alandoni","html_url":"https://github.com/alandoni","followers_url":"https://api.github.com/users/alandoni/followers","following_url":"https://api.github.com/users/alandoni/following{/other_user}","gists_url":"https://api.github.com/users/alandoni/gists{/gist_id}","starred_url":"https://api.github.com/users/alandoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alandoni/subscriptions","organizations_url":"https://api.github.com/users/alandoni/orgs","repos_url":"https://api.github.com/users/alandoni/repos","events_url":"https://api.github.com/users/alandoni/events{/privacy}","received_events_url":"https://api.github.com/users/alandoni/received_events","type":"User","site_admin":false},"repo":{"id":80070378,"name":"fifa-champs","full_name":"alandoni/fifa-champs","owner":{"login":"alandoni","id":12752268,"avatar_url":"https://avatars0.githubusercontent.com/u/12752268?v=4","gravatar_id":"","url":"https://api.github.com/users/alandoni","html_url":"https://github.com/alandoni","followers_url":"https://api.github.com/users/alandoni/followers","following_url":"https://api.github.com/users/alandoni/following{/other_user}","gists_url":"https://api.github.com/users/alandoni/gists{/gist_id}","starred_url":"https://api.github.com/users/alandoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alandoni/subscriptions","organizations_url":"https://api.github.com/users/alandoni/orgs","repos_url":"https://api.github.com/users/alandoni/repos","events_url":"https://api.github.com/users/alandoni/events{/privacy}","received_events_url":"https://api.github.com/users/alandoni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alandoni/fifa-champs","description":null,"fork":false,"url":"https://api.github.com/repos/alandoni/fifa-champs","forks_url":"https://api.github.com/repos/alandoni/fifa-champs/forks","keys_url":"https://api.github.com/repos/alandoni/fifa-champs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alandoni/fifa-champs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alandoni/fifa-champs/teams","hooks_url":"https://api.github.com/repos/alandoni/fifa-champs/hooks","issue_events_url":"https://api.github.com/repos/alandoni/fifa-champs/issues/events{/number}","events_url":"https://api.github.com/repos/alandoni/fifa-champs/events","assignees_url":"https://api.github.com/repos/alandoni/fifa-champs/assignees{/user}","branches_url":"https://api.github.com/repos/alandoni/fifa-champs/branches{/branch}","tags_url":"https://api.github.com/repos/alandoni/fifa-champs/tags","blobs_url":"https://api.github.com/repos/alandoni/fifa-champs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alandoni/fifa-champs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alandoni/fifa-champs/git/refs{/sha}","trees_url":"https://api.github.com/repos/alandoni/fifa-champs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alandoni/fifa-champs/statuses/{sha}","languages_url":"https://api.github.com/repos/alandoni/fifa-champs/languages","stargazers_url":"https://api.github.com/repos/alandoni/fifa-champs/stargazers","contributors_url":"https://api.github.com/repos/alandoni/fifa-champs/contributors","subscribers_url":"https://api.github.com/repos/alandoni/fifa-champs/subscribers","subscription_url":"https://api.github.com/repos/alandoni/fifa-champs/subscription","commits_url":"https://api.github.com/repos/alandoni/fifa-champs/commits{/sha}","git_commits_url":"https://api.github.com/repos/alandoni/fifa-champs/git/commits{/sha}","comments_url":"https://api.github.com/repos/alandoni/fifa-champs/comments{/number}","issue_comment_url":"https://api.github.com/repos/alandoni/fifa-champs/issues/comments{/number}","contents_url":"https://api.github.com/repos/alandoni/fifa-champs/contents/{+path}","compare_url":"https://api.github.com/repos/alandoni/fifa-champs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alandoni/fifa-champs/merges","archive_url":"https://api.github.com/repos/alandoni/fifa-champs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alandoni/fifa-champs/downloads","issues_url":"https://api.github.com/repos/alandoni/fifa-champs/issues{/number}","pulls_url":"https://api.github.com/repos/alandoni/fifa-champs/pulls{/number}","milestones_url":"https://api.github.com/repos/alandoni/fifa-champs/milestones{/number}","notifications_url":"https://api.github.com/repos/alandoni/fifa-champs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alandoni/fifa-champs/labels{/name}","releases_url":"https://api.github.com/repos/alandoni/fifa-champs/releases{/id}","deployments_url":"https://api.github.com/repos/alandoni/fifa-champs/deployments","created_at":"2017-01-26T00:00:19Z","updated_at":"2018-01-24T21:58:42Z","pushed_at":"2018-02-08T13:09:28Z","git_url":"git://github.com/alandoni/fifa-champs.git","ssh_url":"git@github.com:alandoni/fifa-champs.git","clone_url":"https://github.com/alandoni/fifa-champs.git","svn_url":"https://github.com/alandoni/fifa-champs","homepage":null,"size":3061,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":31,"license":null,"forks":4,"open_issues":31,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alandoni/fifa-champs/pulls/132"},"html":{"href":"https://github.com/alandoni/fifa-champs/pull/132"},"issue":{"href":"https://api.github.com/repos/alandoni/fifa-champs/issues/132"},"comments":{"href":"https://api.github.com/repos/alandoni/fifa-champs/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/alandoni/fifa-champs/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/alandoni/fifa-champs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alandoni/fifa-champs/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/alandoni/fifa-champs/statuses/5e938dbcf5f70c89217fa96e7f1d18c885d1cc66"}},"author_association":"NONE"}}
{"actor":{"display_login":"cristiadu"}}