{"action":"created","comment":{"url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/comments/55926452","id":55926452,"diff_hunk":"@@ -251,3 +251,35 @@ controller.hears(\n   }\n );\n \n+\n+/*eslint-disable no-process-exit */\n+\n+function exitHandler(options, err) {\n+\n+  var messages = [\n+    \"Kdo zakopnul o ten kabe... ```obed-o-bot has left the room```\"\n+  ];\n+  // pro všechny kanály kde jsme aktuálně přítomní\n+  // bot.say(messages[0]);\n+\n+  if (options.cleanup) console.log('clean');","path":"bot.js","position":24,"original_position":24,"commit_id":"673754a6b2a018bfe469d6f82f28c25836e8aa77","original_commit_id":"673754a6b2a018bfe469d6f82f28c25836e8aa77","user":{"login":"babant","id":510361,"avatar_url":"https://avatars.githubusercontent.com/u/510361?v=3","gravatar_id":"","url":"https://api.github.com/users/babant","html_url":"https://github.com/babant","followers_url":"https://api.github.com/users/babant/followers","following_url":"https://api.github.com/users/babant/following{/other_user}","gists_url":"https://api.github.com/users/babant/gists{/gist_id}","starred_url":"https://api.github.com/users/babant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babant/subscriptions","organizations_url":"https://api.github.com/users/babant/orgs","repos_url":"https://api.github.com/users/babant/repos","events_url":"https://api.github.com/users/babant/events{/privacy}","received_events_url":"https://api.github.com/users/babant/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Expected '{' and instead saw 'console'.](https://www.codacy.com/app/ondra/obed-o-bot/file/2229873906/issues/source?bid=3165659&fileBranchId=3175486#l265)","created_at":"2016-03-12T19:38:31Z","updated_at":"2016-03-12T19:38:31Z","html_url":"https://github.com/korunka/obed-o-bot/pull/10#discussion_r55926452","pull_request_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/comments/55926452"},"html":{"href":"https://github.com/korunka/obed-o-bot/pull/10#discussion_r55926452"},"pull_request":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/10","id":62650207,"html_url":"https://github.com/korunka/obed-o-bot/pull/10","diff_url":"https://github.com/korunka/obed-o-bot/pull/10.diff","patch_url":"https://github.com/korunka/obed-o-bot/pull/10.patch","issue_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/10","number":10,"state":"open","locked":false,"title":"Code cleanup","user":{"login":"babant","id":510361,"avatar_url":"https://avatars.githubusercontent.com/u/510361?v=3","gravatar_id":"","url":"https://api.github.com/users/babant","html_url":"https://github.com/babant","followers_url":"https://api.github.com/users/babant/followers","following_url":"https://api.github.com/users/babant/following{/other_user}","gists_url":"https://api.github.com/users/babant/gists{/gist_id}","starred_url":"https://api.github.com/users/babant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babant/subscriptions","organizations_url":"https://api.github.com/users/babant/orgs","repos_url":"https://api.github.com/users/babant/repos","events_url":"https://api.github.com/users/babant/events{/privacy}","received_events_url":"https://api.github.com/users/babant/received_events","type":"User","site_admin":false},"body":"* Odstranění všech případů definice funkce uvnitř cyklu\r\n* Oprava práce s **.env** proměnnými - true a false se načtou jako string,\r\nne bool\r\n* Načítání nabídky z offline tréninkových souborů se nově definuje\r\npomocí **.env** proměnné `OFFLINE_NABIDKA`\r\n* Odstraněna duplicita kódu pro načítání ze souboru a z netu","created_at":"2016-03-12T19:36:41Z","updated_at":"2016-03-12T19:38:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1dc5ceb6e61375fcc3d20ac8344c3711ca77cf85","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/10/commits","review_comments_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/10/comments","review_comment_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/10/comments","statuses_url":"https://api.github.com/repos/korunka/obed-o-bot/statuses/673754a6b2a018bfe469d6f82f28c25836e8aa77","head":{"label":"korunka:code-cleanup","ref":"code-cleanup","sha":"673754a6b2a018bfe469d6f82f28c25836e8aa77","user":{"login":"korunka","id":17272210,"avatar_url":"https://avatars.githubusercontent.com/u/17272210?v=3","gravatar_id":"","url":"https://api.github.com/users/korunka","html_url":"https://github.com/korunka","followers_url":"https://api.github.com/users/korunka/followers","following_url":"https://api.github.com/users/korunka/following{/other_user}","gists_url":"https://api.github.com/users/korunka/gists{/gist_id}","starred_url":"https://api.github.com/users/korunka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korunka/subscriptions","organizations_url":"https://api.github.com/users/korunka/orgs","repos_url":"https://api.github.com/users/korunka/repos","events_url":"https://api.github.com/users/korunka/events{/privacy}","received_events_url":"https://api.github.com/users/korunka/received_events","type":"Organization","site_admin":false},"repo":{"id":53120220,"name":"obed-o-bot","full_name":"korunka/obed-o-bot","owner":{"login":"korunka","id":17272210,"avatar_url":"https://avatars.githubusercontent.com/u/17272210?v=3","gravatar_id":"","url":"https://api.github.com/users/korunka","html_url":"https://github.com/korunka","followers_url":"https://api.github.com/users/korunka/followers","following_url":"https://api.github.com/users/korunka/following{/other_user}","gists_url":"https://api.github.com/users/korunka/gists{/gist_id}","starred_url":"https://api.github.com/users/korunka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korunka/subscriptions","organizations_url":"https://api.github.com/users/korunka/orgs","repos_url":"https://api.github.com/users/korunka/repos","events_url":"https://api.github.com/users/korunka/events{/privacy}","received_events_url":"https://api.github.com/users/korunka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/korunka/obed-o-bot","description":"Slack Bot, který kontroluje obědovou nabídku v okolí Loterie Korunka a sdílí s přáteli na Slacku.","fork":false,"url":"https://api.github.com/repos/korunka/obed-o-bot","forks_url":"https://api.github.com/repos/korunka/obed-o-bot/forks","keys_url":"https://api.github.com/repos/korunka/obed-o-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/korunka/obed-o-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/korunka/obed-o-bot/teams","hooks_url":"https://api.github.com/repos/korunka/obed-o-bot/hooks","issue_events_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/events{/number}","events_url":"https://api.github.com/repos/korunka/obed-o-bot/events","assignees_url":"https://api.github.com/repos/korunka/obed-o-bot/assignees{/user}","branches_url":"https://api.github.com/repos/korunka/obed-o-bot/branches{/branch}","tags_url":"https://api.github.com/repos/korunka/obed-o-bot/tags","blobs_url":"https://api.github.com/repos/korunka/obed-o-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/korunka/obed-o-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/korunka/obed-o-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/korunka/obed-o-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/korunka/obed-o-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/korunka/obed-o-bot/languages","stargazers_url":"https://api.github.com/repos/korunka/obed-o-bot/stargazers","contributors_url":"https://api.github.com/repos/korunka/obed-o-bot/contributors","subscribers_url":"https://api.github.com/repos/korunka/obed-o-bot/subscribers","subscription_url":"https://api.github.com/repos/korunka/obed-o-bot/subscription","commits_url":"https://api.github.com/repos/korunka/obed-o-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/korunka/obed-o-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/korunka/obed-o-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/korunka/obed-o-bot/contents/{+path}","compare_url":"https://api.github.com/repos/korunka/obed-o-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/korunka/obed-o-bot/merges","archive_url":"https://api.github.com/repos/korunka/obed-o-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/korunka/obed-o-bot/downloads","issues_url":"https://api.github.com/repos/korunka/obed-o-bot/issues{/number}","pulls_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/korunka/obed-o-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/korunka/obed-o-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/korunka/obed-o-bot/labels{/name}","releases_url":"https://api.github.com/repos/korunka/obed-o-bot/releases{/id}","deployments_url":"https://api.github.com/repos/korunka/obed-o-bot/deployments","created_at":"2016-03-04T08:32:04Z","updated_at":"2016-03-06T14:03:11Z","pushed_at":"2016-03-12T19:37:03Z","git_url":"git://github.com/korunka/obed-o-bot.git","ssh_url":"git@github.com:korunka/obed-o-bot.git","clone_url":"https://github.com/korunka/obed-o-bot.git","svn_url":"https://github.com/korunka/obed-o-bot","homepage":"","size":54,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"korunka:master","ref":"master","sha":"d93eb17028f9002bf7341d7d96c758ae79054fa5","user":{"login":"korunka","id":17272210,"avatar_url":"https://avatars.githubusercontent.com/u/17272210?v=3","gravatar_id":"","url":"https://api.github.com/users/korunka","html_url":"https://github.com/korunka","followers_url":"https://api.github.com/users/korunka/followers","following_url":"https://api.github.com/users/korunka/following{/other_user}","gists_url":"https://api.github.com/users/korunka/gists{/gist_id}","starred_url":"https://api.github.com/users/korunka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korunka/subscriptions","organizations_url":"https://api.github.com/users/korunka/orgs","repos_url":"https://api.github.com/users/korunka/repos","events_url":"https://api.github.com/users/korunka/events{/privacy}","received_events_url":"https://api.github.com/users/korunka/received_events","type":"Organization","site_admin":false},"repo":{"id":53120220,"name":"obed-o-bot","full_name":"korunka/obed-o-bot","owner":{"login":"korunka","id":17272210,"avatar_url":"https://avatars.githubusercontent.com/u/17272210?v=3","gravatar_id":"","url":"https://api.github.com/users/korunka","html_url":"https://github.com/korunka","followers_url":"https://api.github.com/users/korunka/followers","following_url":"https://api.github.com/users/korunka/following{/other_user}","gists_url":"https://api.github.com/users/korunka/gists{/gist_id}","starred_url":"https://api.github.com/users/korunka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korunka/subscriptions","organizations_url":"https://api.github.com/users/korunka/orgs","repos_url":"https://api.github.com/users/korunka/repos","events_url":"https://api.github.com/users/korunka/events{/privacy}","received_events_url":"https://api.github.com/users/korunka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/korunka/obed-o-bot","description":"Slack Bot, který kontroluje obědovou nabídku v okolí Loterie Korunka a sdílí s přáteli na Slacku.","fork":false,"url":"https://api.github.com/repos/korunka/obed-o-bot","forks_url":"https://api.github.com/repos/korunka/obed-o-bot/forks","keys_url":"https://api.github.com/repos/korunka/obed-o-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/korunka/obed-o-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/korunka/obed-o-bot/teams","hooks_url":"https://api.github.com/repos/korunka/obed-o-bot/hooks","issue_events_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/events{/number}","events_url":"https://api.github.com/repos/korunka/obed-o-bot/events","assignees_url":"https://api.github.com/repos/korunka/obed-o-bot/assignees{/user}","branches_url":"https://api.github.com/repos/korunka/obed-o-bot/branches{/branch}","tags_url":"https://api.github.com/repos/korunka/obed-o-bot/tags","blobs_url":"https://api.github.com/repos/korunka/obed-o-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/korunka/obed-o-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/korunka/obed-o-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/korunka/obed-o-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/korunka/obed-o-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/korunka/obed-o-bot/languages","stargazers_url":"https://api.github.com/repos/korunka/obed-o-bot/stargazers","contributors_url":"https://api.github.com/repos/korunka/obed-o-bot/contributors","subscribers_url":"https://api.github.com/repos/korunka/obed-o-bot/subscribers","subscription_url":"https://api.github.com/repos/korunka/obed-o-bot/subscription","commits_url":"https://api.github.com/repos/korunka/obed-o-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/korunka/obed-o-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/korunka/obed-o-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/korunka/obed-o-bot/contents/{+path}","compare_url":"https://api.github.com/repos/korunka/obed-o-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/korunka/obed-o-bot/merges","archive_url":"https://api.github.com/repos/korunka/obed-o-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/korunka/obed-o-bot/downloads","issues_url":"https://api.github.com/repos/korunka/obed-o-bot/issues{/number}","pulls_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/korunka/obed-o-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/korunka/obed-o-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/korunka/obed-o-bot/labels{/name}","releases_url":"https://api.github.com/repos/korunka/obed-o-bot/releases{/id}","deployments_url":"https://api.github.com/repos/korunka/obed-o-bot/deployments","created_at":"2016-03-04T08:32:04Z","updated_at":"2016-03-06T14:03:11Z","pushed_at":"2016-03-12T19:37:03Z","git_url":"git://github.com/korunka/obed-o-bot.git","ssh_url":"git@github.com:korunka/obed-o-bot.git","clone_url":"https://github.com/korunka/obed-o-bot.git","svn_url":"https://github.com/korunka/obed-o-bot","homepage":"","size":54,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/10"},"html":{"href":"https://github.com/korunka/obed-o-bot/pull/10"},"issue":{"href":"https://api.github.com/repos/korunka/obed-o-bot/issues/10"},"comments":{"href":"https://api.github.com/repos/korunka/obed-o-bot/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/korunka/obed-o-bot/statuses/673754a6b2a018bfe469d6f82f28c25836e8aa77"}}}}