{"action":"created","comment":{"url":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/comments/39918819","id":39918819,"diff_hunk":"@@ -11,21 +11,25 @@ module Drakebot\n   class << self\n     attr_reader :bot\n \n-    def run\n-      config = lambda do |key|\n+    def initialize\n+      @config = lambda do |key|","path":"lib/drakebot.rb","position":7,"original_position":7,"commit_id":"0648477570b18f996907eb9a3065134b76e778a7","original_commit_id":"0648477570b18f996907eb9a3065134b76e778a7","user":{"login":"kirjatoukka","id":3986,"avatar_url":"https://avatars.githubusercontent.com/u/3986?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjatoukka","html_url":"https://github.com/kirjatoukka","followers_url":"https://api.github.com/users/kirjatoukka/followers","following_url":"https://api.github.com/users/kirjatoukka/following{/other_user}","gists_url":"https://api.github.com/users/kirjatoukka/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjatoukka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjatoukka/subscriptions","organizations_url":"https://api.github.com/users/kirjatoukka/orgs","repos_url":"https://api.github.com/users/kirjatoukka/repos","events_url":"https://api.github.com/users/kirjatoukka/events{/privacy}","received_events_url":"https://api.github.com/users/kirjatoukka/received_events","type":"User","site_admin":false},"body":"I was wondering that. I thought it would be better to add it when it's needed though, since I wasn't sure if it would be used. Then again I guess plugins are going to want to have configuration.","created_at":"2015-09-19T11:25:06Z","updated_at":"2015-09-19T11:25:06Z","html_url":"https://github.com/kirjatoukka/drakebot/pull/21#discussion_r39918819","pull_request_url":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/comments/39918819"},"html":{"href":"https://github.com/kirjatoukka/drakebot/pull/21#discussion_r39918819"},"pull_request":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/21","id":45423819,"html_url":"https://github.com/kirjatoukka/drakebot/pull/21","diff_url":"https://github.com/kirjatoukka/drakebot/pull/21.diff","patch_url":"https://github.com/kirjatoukka/drakebot/pull/21.patch","issue_url":"https://api.github.com/repos/kirjatoukka/drakebot/issues/21","number":21,"state":"open","locked":false,"title":"lint everything and run rubocop as part of a build.","user":{"login":"kirjatoukka","id":3986,"avatar_url":"https://avatars.githubusercontent.com/u/3986?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjatoukka","html_url":"https://github.com/kirjatoukka","followers_url":"https://api.github.com/users/kirjatoukka/followers","following_url":"https://api.github.com/users/kirjatoukka/following{/other_user}","gists_url":"https://api.github.com/users/kirjatoukka/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjatoukka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjatoukka/subscriptions","organizations_url":"https://api.github.com/users/kirjatoukka/orgs","repos_url":"https://api.github.com/users/kirjatoukka/repos","events_url":"https://api.github.com/users/kirjatoukka/events{/privacy}","received_events_url":"https://api.github.com/users/kirjatoukka/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-18T16:08:38Z","updated_at":"2015-09-19T11:25:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4a6209342e32da792a21d31baa2c625b7acb3fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/21/commits","review_comments_url":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/21/comments","review_comment_url":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kirjatoukka/drakebot/issues/21/comments","statuses_url":"https://api.github.com/repos/kirjatoukka/drakebot/statuses/0648477570b18f996907eb9a3065134b76e778a7","head":{"label":"kirjatoukka:rubocop","ref":"rubocop","sha":"0648477570b18f996907eb9a3065134b76e778a7","user":{"login":"kirjatoukka","id":3986,"avatar_url":"https://avatars.githubusercontent.com/u/3986?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjatoukka","html_url":"https://github.com/kirjatoukka","followers_url":"https://api.github.com/users/kirjatoukka/followers","following_url":"https://api.github.com/users/kirjatoukka/following{/other_user}","gists_url":"https://api.github.com/users/kirjatoukka/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjatoukka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjatoukka/subscriptions","organizations_url":"https://api.github.com/users/kirjatoukka/orgs","repos_url":"https://api.github.com/users/kirjatoukka/repos","events_url":"https://api.github.com/users/kirjatoukka/events{/privacy}","received_events_url":"https://api.github.com/users/kirjatoukka/received_events","type":"User","site_admin":false},"repo":{"id":42509415,"name":"drakebot","full_name":"kirjatoukka/drakebot","owner":{"login":"kirjatoukka","id":3986,"avatar_url":"https://avatars.githubusercontent.com/u/3986?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjatoukka","html_url":"https://github.com/kirjatoukka","followers_url":"https://api.github.com/users/kirjatoukka/followers","following_url":"https://api.github.com/users/kirjatoukka/following{/other_user}","gists_url":"https://api.github.com/users/kirjatoukka/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjatoukka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjatoukka/subscriptions","organizations_url":"https://api.github.com/users/kirjatoukka/orgs","repos_url":"https://api.github.com/users/kirjatoukka/repos","events_url":"https://api.github.com/users/kirjatoukka/events{/privacy}","received_events_url":"https://api.github.com/users/kirjatoukka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kirjatoukka/drakebot","description":"","fork":false,"url":"https://api.github.com/repos/kirjatoukka/drakebot","forks_url":"https://api.github.com/repos/kirjatoukka/drakebot/forks","keys_url":"https://api.github.com/repos/kirjatoukka/drakebot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kirjatoukka/drakebot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kirjatoukka/drakebot/teams","hooks_url":"https://api.github.com/repos/kirjatoukka/drakebot/hooks","issue_events_url":"https://api.github.com/repos/kirjatoukka/drakebot/issues/events{/number}","events_url":"https://api.github.com/repos/kirjatoukka/drakebot/events","assignees_url":"https://api.github.com/repos/kirjatoukka/drakebot/assignees{/user}","branches_url":"https://api.github.com/repos/kirjatoukka/drakebot/branches{/branch}","tags_url":"https://api.github.com/repos/kirjatoukka/drakebot/tags","blobs_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/refs{/sha}","trees_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kirjatoukka/drakebot/statuses/{sha}","languages_url":"https://api.github.com/repos/kirjatoukka/drakebot/languages","stargazers_url":"https://api.github.com/repos/kirjatoukka/drakebot/stargazers","contributors_url":"https://api.github.com/repos/kirjatoukka/drakebot/contributors","subscribers_url":"https://api.github.com/repos/kirjatoukka/drakebot/subscribers","subscription_url":"https://api.github.com/repos/kirjatoukka/drakebot/subscription","commits_url":"https://api.github.com/repos/kirjatoukka/drakebot/commits{/sha}","git_commits_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/commits{/sha}","comments_url":"https://api.github.com/repos/kirjatoukka/drakebot/comments{/number}","issue_comment_url":"https://api.github.com/repos/kirjatoukka/drakebot/issues/comments{/number}","contents_url":"https://api.github.com/repos/kirjatoukka/drakebot/contents/{+path}","compare_url":"https://api.github.com/repos/kirjatoukka/drakebot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kirjatoukka/drakebot/merges","archive_url":"https://api.github.com/repos/kirjatoukka/drakebot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kirjatoukka/drakebot/downloads","issues_url":"https://api.github.com/repos/kirjatoukka/drakebot/issues{/number}","pulls_url":"https://api.github.com/repos/kirjatoukka/drakebot/pulls{/number}","milestones_url":"https://api.github.com/repos/kirjatoukka/drakebot/milestones{/number}","notifications_url":"https://api.github.com/repos/kirjatoukka/drakebot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kirjatoukka/drakebot/labels{/name}","releases_url":"https://api.github.com/repos/kirjatoukka/drakebot/releases{/id}","created_at":"2015-09-15T09:48:20Z","updated_at":"2015-09-17T09:00:16Z","pushed_at":"2015-09-18T17:39:51Z","git_url":"git://github.com/kirjatoukka/drakebot.git","ssh_url":"git@github.com:kirjatoukka/drakebot.git","clone_url":"https://github.com/kirjatoukka/drakebot.git","svn_url":"https://github.com/kirjatoukka/drakebot","homepage":null,"size":0,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"kirjatoukka:master","ref":"master","sha":"8d8043b5f92f48a893565468e6ba4ed22188c454","user":{"login":"kirjatoukka","id":3986,"avatar_url":"https://avatars.githubusercontent.com/u/3986?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjatoukka","html_url":"https://github.com/kirjatoukka","followers_url":"https://api.github.com/users/kirjatoukka/followers","following_url":"https://api.github.com/users/kirjatoukka/following{/other_user}","gists_url":"https://api.github.com/users/kirjatoukka/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjatoukka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjatoukka/subscriptions","organizations_url":"https://api.github.com/users/kirjatoukka/orgs","repos_url":"https://api.github.com/users/kirjatoukka/repos","events_url":"https://api.github.com/users/kirjatoukka/events{/privacy}","received_events_url":"https://api.github.com/users/kirjatoukka/received_events","type":"User","site_admin":false},"repo":{"id":42509415,"name":"drakebot","full_name":"kirjatoukka/drakebot","owner":{"login":"kirjatoukka","id":3986,"avatar_url":"https://avatars.githubusercontent.com/u/3986?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjatoukka","html_url":"https://github.com/kirjatoukka","followers_url":"https://api.github.com/users/kirjatoukka/followers","following_url":"https://api.github.com/users/kirjatoukka/following{/other_user}","gists_url":"https://api.github.com/users/kirjatoukka/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjatoukka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjatoukka/subscriptions","organizations_url":"https://api.github.com/users/kirjatoukka/orgs","repos_url":"https://api.github.com/users/kirjatoukka/repos","events_url":"https://api.github.com/users/kirjatoukka/events{/privacy}","received_events_url":"https://api.github.com/users/kirjatoukka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kirjatoukka/drakebot","description":"","fork":false,"url":"https://api.github.com/repos/kirjatoukka/drakebot","forks_url":"https://api.github.com/repos/kirjatoukka/drakebot/forks","keys_url":"https://api.github.com/repos/kirjatoukka/drakebot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kirjatoukka/drakebot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kirjatoukka/drakebot/teams","hooks_url":"https://api.github.com/repos/kirjatoukka/drakebot/hooks","issue_events_url":"https://api.github.com/repos/kirjatoukka/drakebot/issues/events{/number}","events_url":"https://api.github.com/repos/kirjatoukka/drakebot/events","assignees_url":"https://api.github.com/repos/kirjatoukka/drakebot/assignees{/user}","branches_url":"https://api.github.com/repos/kirjatoukka/drakebot/branches{/branch}","tags_url":"https://api.github.com/repos/kirjatoukka/drakebot/tags","blobs_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/refs{/sha}","trees_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kirjatoukka/drakebot/statuses/{sha}","languages_url":"https://api.github.com/repos/kirjatoukka/drakebot/languages","stargazers_url":"https://api.github.com/repos/kirjatoukka/drakebot/stargazers","contributors_url":"https://api.github.com/repos/kirjatoukka/drakebot/contributors","subscribers_url":"https://api.github.com/repos/kirjatoukka/drakebot/subscribers","subscription_url":"https://api.github.com/repos/kirjatoukka/drakebot/subscription","commits_url":"https://api.github.com/repos/kirjatoukka/drakebot/commits{/sha}","git_commits_url":"https://api.github.com/repos/kirjatoukka/drakebot/git/commits{/sha}","comments_url":"https://api.github.com/repos/kirjatoukka/drakebot/comments{/number}","issue_comment_url":"https://api.github.com/repos/kirjatoukka/drakebot/issues/comments{/number}","contents_url":"https://api.github.com/repos/kirjatoukka/drakebot/contents/{+path}","compare_url":"https://api.github.com/repos/kirjatoukka/drakebot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kirjatoukka/drakebot/merges","archive_url":"https://api.github.com/repos/kirjatoukka/drakebot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kirjatoukka/drakebot/downloads","issues_url":"https://api.github.com/repos/kirjatoukka/drakebot/issues{/number}","pulls_url":"https://api.github.com/repos/kirjatoukka/drakebot/pulls{/number}","milestones_url":"https://api.github.com/repos/kirjatoukka/drakebot/milestones{/number}","notifications_url":"https://api.github.com/repos/kirjatoukka/drakebot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kirjatoukka/drakebot/labels{/name}","releases_url":"https://api.github.com/repos/kirjatoukka/drakebot/releases{/id}","created_at":"2015-09-15T09:48:20Z","updated_at":"2015-09-17T09:00:16Z","pushed_at":"2015-09-18T17:39:51Z","git_url":"git://github.com/kirjatoukka/drakebot.git","ssh_url":"git@github.com:kirjatoukka/drakebot.git","clone_url":"https://github.com/kirjatoukka/drakebot.git","svn_url":"https://github.com/kirjatoukka/drakebot","homepage":null,"size":0,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/21"},"html":{"href":"https://github.com/kirjatoukka/drakebot/pull/21"},"issue":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/issues/21"},"comments":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/kirjatoukka/drakebot/statuses/0648477570b18f996907eb9a3065134b76e778a7"}}}}