{"action":"created","comment":{"url":"https://api.github.com/repos/hashobject/quizzy/pulls/comments/24300341","id":24300341,"diff_hunk":"@@ -6,11 +6,25 @@ var http = require('http').Server(app);\n var io = require('socket.io')(http);\n \n var questionsList = question.correctQuestions();\n+var question;\n \n var users = [];\n var leaders = [{name: 'Anton', points: 50}, {name: 'Pasha', points: 60}, {name: 'Maryna', points: 70}];\n \n+function getQuestion(){\n+    var generatedQuestion = questionsList[Math.floor(Math.random()*questionsList.length)];\n+    question = generatedQuestion;\n+    return generatedQuestion;\n+}\n \n+function checkTheAnswer(answer){","path":"app.js","position":15,"original_position":15,"commit_id":"da7e2a2b5cdc6c1fb61667f66ac116f333009d19","original_commit_id":"da7e2a2b5cdc6c1fb61667f66ac116f333009d19","user":{"login":"podviaznikov","id":429706,"avatar_url":"https://avatars.githubusercontent.com/u/429706?v=3","gravatar_id":"","url":"https://api.github.com/users/podviaznikov","html_url":"https://github.com/podviaznikov","followers_url":"https://api.github.com/users/podviaznikov/followers","following_url":"https://api.github.com/users/podviaznikov/following{/other_user}","gists_url":"https://api.github.com/users/podviaznikov/gists{/gist_id}","starred_url":"https://api.github.com/users/podviaznikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/podviaznikov/subscriptions","organizations_url":"https://api.github.com/users/podviaznikov/orgs","repos_url":"https://api.github.com/users/podviaznikov/repos","events_url":"https://api.github.com/users/podviaznikov/events{/privacy}","received_events_url":"https://api.github.com/users/podviaznikov/received_events","type":"User","site_admin":false},"body":"just curious if you know how to write function body in one line?","created_at":"2015-02-08T17:33:22Z","updated_at":"2015-02-08T17:33:22Z","html_url":"https://github.com/hashobject/quizzy/pull/14#discussion_r24300341","pull_request_url":"https://api.github.com/repos/hashobject/quizzy/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/hashobject/quizzy/pulls/comments/24300341"},"html":{"href":"https://github.com/hashobject/quizzy/pull/14#discussion_r24300341"},"pull_request":{"href":"https://api.github.com/repos/hashobject/quizzy/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/hashobject/quizzy/pulls/14","id":28878303,"html_url":"https://github.com/hashobject/quizzy/pull/14","diff_url":"https://github.com/hashobject/quizzy/pull/14.diff","patch_url":"https://github.com/hashobject/quizzy/pull/14.patch","issue_url":"https://api.github.com/repos/hashobject/quizzy/issues/14","number":14,"state":"open","locked":false,"title":"Online users and greetings","user":{"login":"PavelPodviaznikov","id":655875,"avatar_url":"https://avatars.githubusercontent.com/u/655875?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelPodviaznikov","html_url":"https://github.com/PavelPodviaznikov","followers_url":"https://api.github.com/users/PavelPodviaznikov/followers","following_url":"https://api.github.com/users/PavelPodviaznikov/following{/other_user}","gists_url":"https://api.github.com/users/PavelPodviaznikov/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPodviaznikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPodviaznikov/subscriptions","organizations_url":"https://api.github.com/users/PavelPodviaznikov/orgs","repos_url":"https://api.github.com/users/PavelPodviaznikov/repos","events_url":"https://api.github.com/users/PavelPodviaznikov/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPodviaznikov/received_events","type":"User","site_admin":false},"body":"@podviaznikov \r\n\r\nI have finished online users and greetings from bot. You can check it.","created_at":"2015-02-08T10:06:11Z","updated_at":"2015-02-08T17:33:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4780a3f6f84cd1c820973982208d691ecce656d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hashobject/quizzy/pulls/14/commits","review_comments_url":"https://api.github.com/repos/hashobject/quizzy/pulls/14/comments","review_comment_url":"https://api.github.com/repos/hashobject/quizzy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hashobject/quizzy/issues/14/comments","statuses_url":"https://api.github.com/repos/hashobject/quizzy/statuses/da7e2a2b5cdc6c1fb61667f66ac116f333009d19","head":{"label":"hashobject:online-users","ref":"online-users","sha":"da7e2a2b5cdc6c1fb61667f66ac116f333009d19","user":{"login":"hashobject","id":4522707,"avatar_url":"https://avatars.githubusercontent.com/u/4522707?v=3","gravatar_id":"","url":"https://api.github.com/users/hashobject","html_url":"https://github.com/hashobject","followers_url":"https://api.github.com/users/hashobject/followers","following_url":"https://api.github.com/users/hashobject/following{/other_user}","gists_url":"https://api.github.com/users/hashobject/gists{/gist_id}","starred_url":"https://api.github.com/users/hashobject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashobject/subscriptions","organizations_url":"https://api.github.com/users/hashobject/orgs","repos_url":"https://api.github.com/users/hashobject/repos","events_url":"https://api.github.com/users/hashobject/events{/privacy}","received_events_url":"https://api.github.com/users/hashobject/received_events","type":"Organization","site_admin":false},"repo":{"id":29983988,"name":"quizzy","full_name":"hashobject/quizzy","owner":{"login":"hashobject","id":4522707,"avatar_url":"https://avatars.githubusercontent.com/u/4522707?v=3","gravatar_id":"","url":"https://api.github.com/users/hashobject","html_url":"https://github.com/hashobject","followers_url":"https://api.github.com/users/hashobject/followers","following_url":"https://api.github.com/users/hashobject/following{/other_user}","gists_url":"https://api.github.com/users/hashobject/gists{/gist_id}","starred_url":"https://api.github.com/users/hashobject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashobject/subscriptions","organizations_url":"https://api.github.com/users/hashobject/orgs","repos_url":"https://api.github.com/users/hashobject/repos","events_url":"https://api.github.com/users/hashobject/events{/privacy}","received_events_url":"https://api.github.com/users/hashobject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashobject/quizzy","description":"","fork":false,"url":"https://api.github.com/repos/hashobject/quizzy","forks_url":"https://api.github.com/repos/hashobject/quizzy/forks","keys_url":"https://api.github.com/repos/hashobject/quizzy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashobject/quizzy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashobject/quizzy/teams","hooks_url":"https://api.github.com/repos/hashobject/quizzy/hooks","issue_events_url":"https://api.github.com/repos/hashobject/quizzy/issues/events{/number}","events_url":"https://api.github.com/repos/hashobject/quizzy/events","assignees_url":"https://api.github.com/repos/hashobject/quizzy/assignees{/user}","branches_url":"https://api.github.com/repos/hashobject/quizzy/branches{/branch}","tags_url":"https://api.github.com/repos/hashobject/quizzy/tags","blobs_url":"https://api.github.com/repos/hashobject/quizzy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashobject/quizzy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashobject/quizzy/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashobject/quizzy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashobject/quizzy/statuses/{sha}","languages_url":"https://api.github.com/repos/hashobject/quizzy/languages","stargazers_url":"https://api.github.com/repos/hashobject/quizzy/stargazers","contributors_url":"https://api.github.com/repos/hashobject/quizzy/contributors","subscribers_url":"https://api.github.com/repos/hashobject/quizzy/subscribers","subscription_url":"https://api.github.com/repos/hashobject/quizzy/subscription","commits_url":"https://api.github.com/repos/hashobject/quizzy/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashobject/quizzy/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashobject/quizzy/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashobject/quizzy/issues/comments/{number}","contents_url":"https://api.github.com/repos/hashobject/quizzy/contents/{+path}","compare_url":"https://api.github.com/repos/hashobject/quizzy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashobject/quizzy/merges","archive_url":"https://api.github.com/repos/hashobject/quizzy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashobject/quizzy/downloads","issues_url":"https://api.github.com/repos/hashobject/quizzy/issues{/number}","pulls_url":"https://api.github.com/repos/hashobject/quizzy/pulls{/number}","milestones_url":"https://api.github.com/repos/hashobject/quizzy/milestones{/number}","notifications_url":"https://api.github.com/repos/hashobject/quizzy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashobject/quizzy/labels{/name}","releases_url":"https://api.github.com/repos/hashobject/quizzy/releases{/id}","created_at":"2015-01-28T19:22:26Z","updated_at":"2015-02-08T08:37:26Z","pushed_at":"2015-02-08T13:09:47Z","git_url":"git://github.com/hashobject/quizzy.git","ssh_url":"git@github.com:hashobject/quizzy.git","clone_url":"https://github.com/hashobject/quizzy.git","svn_url":"https://github.com/hashobject/quizzy","homepage":null,"size":768,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"hashobject:master","ref":"master","sha":"074edc0f4a8d02134213cd74c660a0d68b5f09fa","user":{"login":"hashobject","id":4522707,"avatar_url":"https://avatars.githubusercontent.com/u/4522707?v=3","gravatar_id":"","url":"https://api.github.com/users/hashobject","html_url":"https://github.com/hashobject","followers_url":"https://api.github.com/users/hashobject/followers","following_url":"https://api.github.com/users/hashobject/following{/other_user}","gists_url":"https://api.github.com/users/hashobject/gists{/gist_id}","starred_url":"https://api.github.com/users/hashobject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashobject/subscriptions","organizations_url":"https://api.github.com/users/hashobject/orgs","repos_url":"https://api.github.com/users/hashobject/repos","events_url":"https://api.github.com/users/hashobject/events{/privacy}","received_events_url":"https://api.github.com/users/hashobject/received_events","type":"Organization","site_admin":false},"repo":{"id":29983988,"name":"quizzy","full_name":"hashobject/quizzy","owner":{"login":"hashobject","id":4522707,"avatar_url":"https://avatars.githubusercontent.com/u/4522707?v=3","gravatar_id":"","url":"https://api.github.com/users/hashobject","html_url":"https://github.com/hashobject","followers_url":"https://api.github.com/users/hashobject/followers","following_url":"https://api.github.com/users/hashobject/following{/other_user}","gists_url":"https://api.github.com/users/hashobject/gists{/gist_id}","starred_url":"https://api.github.com/users/hashobject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashobject/subscriptions","organizations_url":"https://api.github.com/users/hashobject/orgs","repos_url":"https://api.github.com/users/hashobject/repos","events_url":"https://api.github.com/users/hashobject/events{/privacy}","received_events_url":"https://api.github.com/users/hashobject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashobject/quizzy","description":"","fork":false,"url":"https://api.github.com/repos/hashobject/quizzy","forks_url":"https://api.github.com/repos/hashobject/quizzy/forks","keys_url":"https://api.github.com/repos/hashobject/quizzy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashobject/quizzy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashobject/quizzy/teams","hooks_url":"https://api.github.com/repos/hashobject/quizzy/hooks","issue_events_url":"https://api.github.com/repos/hashobject/quizzy/issues/events{/number}","events_url":"https://api.github.com/repos/hashobject/quizzy/events","assignees_url":"https://api.github.com/repos/hashobject/quizzy/assignees{/user}","branches_url":"https://api.github.com/repos/hashobject/quizzy/branches{/branch}","tags_url":"https://api.github.com/repos/hashobject/quizzy/tags","blobs_url":"https://api.github.com/repos/hashobject/quizzy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashobject/quizzy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashobject/quizzy/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashobject/quizzy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashobject/quizzy/statuses/{sha}","languages_url":"https://api.github.com/repos/hashobject/quizzy/languages","stargazers_url":"https://api.github.com/repos/hashobject/quizzy/stargazers","contributors_url":"https://api.github.com/repos/hashobject/quizzy/contributors","subscribers_url":"https://api.github.com/repos/hashobject/quizzy/subscribers","subscription_url":"https://api.github.com/repos/hashobject/quizzy/subscription","commits_url":"https://api.github.com/repos/hashobject/quizzy/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashobject/quizzy/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashobject/quizzy/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashobject/quizzy/issues/comments/{number}","contents_url":"https://api.github.com/repos/hashobject/quizzy/contents/{+path}","compare_url":"https://api.github.com/repos/hashobject/quizzy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashobject/quizzy/merges","archive_url":"https://api.github.com/repos/hashobject/quizzy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashobject/quizzy/downloads","issues_url":"https://api.github.com/repos/hashobject/quizzy/issues{/number}","pulls_url":"https://api.github.com/repos/hashobject/quizzy/pulls{/number}","milestones_url":"https://api.github.com/repos/hashobject/quizzy/milestones{/number}","notifications_url":"https://api.github.com/repos/hashobject/quizzy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashobject/quizzy/labels{/name}","releases_url":"https://api.github.com/repos/hashobject/quizzy/releases{/id}","created_at":"2015-01-28T19:22:26Z","updated_at":"2015-02-08T08:37:26Z","pushed_at":"2015-02-08T13:09:47Z","git_url":"git://github.com/hashobject/quizzy.git","ssh_url":"git@github.com:hashobject/quizzy.git","clone_url":"https://github.com/hashobject/quizzy.git","svn_url":"https://github.com/hashobject/quizzy","homepage":null,"size":768,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashobject/quizzy/pulls/14"},"html":{"href":"https://github.com/hashobject/quizzy/pull/14"},"issue":{"href":"https://api.github.com/repos/hashobject/quizzy/issues/14"},"comments":{"href":"https://api.github.com/repos/hashobject/quizzy/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/hashobject/quizzy/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/hashobject/quizzy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hashobject/quizzy/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/hashobject/quizzy/statuses/da7e2a2b5cdc6c1fb61667f66ac116f333009d19"}}}}