{"action":"created","comment":{"url":"https://api.github.com/repos/mrkno/Kassy/pulls/comments/60388234","id":60388234,"diff_hunk":"@@ -261,6 +280,46 @@ var git = require.once('../git.js'),\n                 }\n             }.bind(this));\n         }.bind(this));\n+    },\n+    refreshModuleTable = function (url, callback) {\n+        var hr = 3600000;\n+        if (moduleTable.lastUpdated != null && new Date() - moduleTable.lastUpdated < hr) {\n+            return callback(url);\n+        }\n+\n+        request.get('https://raw.githubusercontent.com/wiki/mrkno/Kassy/KPM-Table.md', function (error, response) {\n+            if (response.statusCode === 200 && response.body) {\n+                var b = response.body;\n+                if (b && b.length > 0) {","path":"core/core_modules/kpm.js","position":73,"original_position":73,"commit_id":"b817dcb78d07684a62fb21506584d0d138106f49","original_commit_id":"b817dcb78d07684a62fb21506584d0d138106f49","user":{"login":"mrkno","id":6830312,"avatar_url":"https://avatars.githubusercontent.com/u/6830312?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkno","html_url":"https://github.com/mrkno","followers_url":"https://api.github.com/users/mrkno/followers","following_url":"https://api.github.com/users/mrkno/following{/other_user}","gists_url":"https://api.github.com/users/mrkno/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkno/subscriptions","organizations_url":"https://api.github.com/users/mrkno/orgs","repos_url":"https://api.github.com/users/mrkno/repos","events_url":"https://api.github.com/users/mrkno/events{/privacy}","received_events_url":"https://api.github.com/users/mrkno/received_events","type":"User","site_admin":false},"body":"Worst case: it refuses to work with the table and we do a git revert on the wiki and it magically starts working again","created_at":"2016-04-20T11:00:08Z","updated_at":"2016-04-20T11:00:08Z","html_url":"https://github.com/mrkno/Kassy/pull/115#discussion_r60388234","pull_request_url":"https://api.github.com/repos/mrkno/Kassy/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/mrkno/Kassy/pulls/comments/60388234"},"html":{"href":"https://github.com/mrkno/Kassy/pull/115#discussion_r60388234"},"pull_request":{"href":"https://api.github.com/repos/mrkno/Kassy/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/mrkno/Kassy/pulls/115","id":65572975,"html_url":"https://github.com/mrkno/Kassy/pull/115","diff_url":"https://github.com/mrkno/Kassy/pull/115.diff","patch_url":"https://github.com/mrkno/Kassy/pull/115.patch","issue_url":"https://api.github.com/repos/mrkno/Kassy/issues/115","number":115,"state":"open","locked":false,"title":"Install KPM modules from a wiki lookup table","user":{"login":"mrkno","id":6830312,"avatar_url":"https://avatars.githubusercontent.com/u/6830312?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkno","html_url":"https://github.com/mrkno","followers_url":"https://api.github.com/users/mrkno/followers","following_url":"https://api.github.com/users/mrkno/following{/other_user}","gists_url":"https://api.github.com/users/mrkno/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkno/subscriptions","organizations_url":"https://api.github.com/users/mrkno/orgs","repos_url":"https://api.github.com/users/mrkno/repos","events_url":"https://api.github.com/users/mrkno/events{/privacy}","received_events_url":"https://api.github.com/users/mrkno/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-07T04:36:38Z","updated_at":"2016-04-20T11:00:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bb2824d1f5bccb20892e331dabb5684ae53bfc6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mrkno/Kassy/pulls/115/commits","review_comments_url":"https://api.github.com/repos/mrkno/Kassy/pulls/115/comments","review_comment_url":"https://api.github.com/repos/mrkno/Kassy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrkno/Kassy/issues/115/comments","statuses_url":"https://api.github.com/repos/mrkno/Kassy/statuses/b817dcb78d07684a62fb21506584d0d138106f49","head":{"label":"mrkno:kpm/lookupTable","ref":"kpm/lookupTable","sha":"b817dcb78d07684a62fb21506584d0d138106f49","user":{"login":"mrkno","id":6830312,"avatar_url":"https://avatars.githubusercontent.com/u/6830312?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkno","html_url":"https://github.com/mrkno","followers_url":"https://api.github.com/users/mrkno/followers","following_url":"https://api.github.com/users/mrkno/following{/other_user}","gists_url":"https://api.github.com/users/mrkno/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkno/subscriptions","organizations_url":"https://api.github.com/users/mrkno/orgs","repos_url":"https://api.github.com/users/mrkno/repos","events_url":"https://api.github.com/users/mrkno/events{/privacy}","received_events_url":"https://api.github.com/users/mrkno/received_events","type":"User","site_admin":false},"repo":{"id":39051419,"name":"Kassy","full_name":"mrkno/Kassy","owner":{"login":"mrkno","id":6830312,"avatar_url":"https://avatars.githubusercontent.com/u/6830312?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkno","html_url":"https://github.com/mrkno","followers_url":"https://api.github.com/users/mrkno/followers","following_url":"https://api.github.com/users/mrkno/following{/other_user}","gists_url":"https://api.github.com/users/mrkno/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkno/subscriptions","organizations_url":"https://api.github.com/users/mrkno/orgs","repos_url":"https://api.github.com/users/mrkno/repos","events_url":"https://api.github.com/users/mrkno/events{/privacy}","received_events_url":"https://api.github.com/users/mrkno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrkno/Kassy","description":"Modular chat bot. (Karma + Sassy) * (Facebook + Slack) - Hipchat = Kassy","fork":false,"url":"https://api.github.com/repos/mrkno/Kassy","forks_url":"https://api.github.com/repos/mrkno/Kassy/forks","keys_url":"https://api.github.com/repos/mrkno/Kassy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrkno/Kassy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrkno/Kassy/teams","hooks_url":"https://api.github.com/repos/mrkno/Kassy/hooks","issue_events_url":"https://api.github.com/repos/mrkno/Kassy/issues/events{/number}","events_url":"https://api.github.com/repos/mrkno/Kassy/events","assignees_url":"https://api.github.com/repos/mrkno/Kassy/assignees{/user}","branches_url":"https://api.github.com/repos/mrkno/Kassy/branches{/branch}","tags_url":"https://api.github.com/repos/mrkno/Kassy/tags","blobs_url":"https://api.github.com/repos/mrkno/Kassy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrkno/Kassy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrkno/Kassy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrkno/Kassy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrkno/Kassy/statuses/{sha}","languages_url":"https://api.github.com/repos/mrkno/Kassy/languages","stargazers_url":"https://api.github.com/repos/mrkno/Kassy/stargazers","contributors_url":"https://api.github.com/repos/mrkno/Kassy/contributors","subscribers_url":"https://api.github.com/repos/mrkno/Kassy/subscribers","subscription_url":"https://api.github.com/repos/mrkno/Kassy/subscription","commits_url":"https://api.github.com/repos/mrkno/Kassy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrkno/Kassy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrkno/Kassy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrkno/Kassy/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrkno/Kassy/contents/{+path}","compare_url":"https://api.github.com/repos/mrkno/Kassy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrkno/Kassy/merges","archive_url":"https://api.github.com/repos/mrkno/Kassy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrkno/Kassy/downloads","issues_url":"https://api.github.com/repos/mrkno/Kassy/issues{/number}","pulls_url":"https://api.github.com/repos/mrkno/Kassy/pulls{/number}","milestones_url":"https://api.github.com/repos/mrkno/Kassy/milestones{/number}","notifications_url":"https://api.github.com/repos/mrkno/Kassy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrkno/Kassy/labels{/name}","releases_url":"https://api.github.com/repos/mrkno/Kassy/releases{/id}","deployments_url":"https://api.github.com/repos/mrkno/Kassy/deployments","created_at":"2015-07-14T03:27:54Z","updated_at":"2016-04-20T03:45:34Z","pushed_at":"2016-04-20T08:36:03Z","git_url":"git://github.com/mrkno/Kassy.git","ssh_url":"git@github.com:mrkno/Kassy.git","clone_url":"https://github.com/mrkno/Kassy.git","svn_url":"https://github.com/mrkno/Kassy","homepage":"","size":4553,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":24,"forks":17,"open_issues":24,"watchers":46,"default_branch":"master"}},"base":{"label":"mrkno:master","ref":"master","sha":"1febd864bfa02b03f2f345a46f4c162777c9e076","user":{"login":"mrkno","id":6830312,"avatar_url":"https://avatars.githubusercontent.com/u/6830312?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkno","html_url":"https://github.com/mrkno","followers_url":"https://api.github.com/users/mrkno/followers","following_url":"https://api.github.com/users/mrkno/following{/other_user}","gists_url":"https://api.github.com/users/mrkno/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkno/subscriptions","organizations_url":"https://api.github.com/users/mrkno/orgs","repos_url":"https://api.github.com/users/mrkno/repos","events_url":"https://api.github.com/users/mrkno/events{/privacy}","received_events_url":"https://api.github.com/users/mrkno/received_events","type":"User","site_admin":false},"repo":{"id":39051419,"name":"Kassy","full_name":"mrkno/Kassy","owner":{"login":"mrkno","id":6830312,"avatar_url":"https://avatars.githubusercontent.com/u/6830312?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkno","html_url":"https://github.com/mrkno","followers_url":"https://api.github.com/users/mrkno/followers","following_url":"https://api.github.com/users/mrkno/following{/other_user}","gists_url":"https://api.github.com/users/mrkno/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkno/subscriptions","organizations_url":"https://api.github.com/users/mrkno/orgs","repos_url":"https://api.github.com/users/mrkno/repos","events_url":"https://api.github.com/users/mrkno/events{/privacy}","received_events_url":"https://api.github.com/users/mrkno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrkno/Kassy","description":"Modular chat bot. (Karma + Sassy) * (Facebook + Slack) - Hipchat = Kassy","fork":false,"url":"https://api.github.com/repos/mrkno/Kassy","forks_url":"https://api.github.com/repos/mrkno/Kassy/forks","keys_url":"https://api.github.com/repos/mrkno/Kassy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrkno/Kassy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrkno/Kassy/teams","hooks_url":"https://api.github.com/repos/mrkno/Kassy/hooks","issue_events_url":"https://api.github.com/repos/mrkno/Kassy/issues/events{/number}","events_url":"https://api.github.com/repos/mrkno/Kassy/events","assignees_url":"https://api.github.com/repos/mrkno/Kassy/assignees{/user}","branches_url":"https://api.github.com/repos/mrkno/Kassy/branches{/branch}","tags_url":"https://api.github.com/repos/mrkno/Kassy/tags","blobs_url":"https://api.github.com/repos/mrkno/Kassy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrkno/Kassy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrkno/Kassy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrkno/Kassy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrkno/Kassy/statuses/{sha}","languages_url":"https://api.github.com/repos/mrkno/Kassy/languages","stargazers_url":"https://api.github.com/repos/mrkno/Kassy/stargazers","contributors_url":"https://api.github.com/repos/mrkno/Kassy/contributors","subscribers_url":"https://api.github.com/repos/mrkno/Kassy/subscribers","subscription_url":"https://api.github.com/repos/mrkno/Kassy/subscription","commits_url":"https://api.github.com/repos/mrkno/Kassy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrkno/Kassy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrkno/Kassy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrkno/Kassy/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrkno/Kassy/contents/{+path}","compare_url":"https://api.github.com/repos/mrkno/Kassy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrkno/Kassy/merges","archive_url":"https://api.github.com/repos/mrkno/Kassy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrkno/Kassy/downloads","issues_url":"https://api.github.com/repos/mrkno/Kassy/issues{/number}","pulls_url":"https://api.github.com/repos/mrkno/Kassy/pulls{/number}","milestones_url":"https://api.github.com/repos/mrkno/Kassy/milestones{/number}","notifications_url":"https://api.github.com/repos/mrkno/Kassy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrkno/Kassy/labels{/name}","releases_url":"https://api.github.com/repos/mrkno/Kassy/releases{/id}","deployments_url":"https://api.github.com/repos/mrkno/Kassy/deployments","created_at":"2015-07-14T03:27:54Z","updated_at":"2016-04-20T03:45:34Z","pushed_at":"2016-04-20T08:36:03Z","git_url":"git://github.com/mrkno/Kassy.git","ssh_url":"git@github.com:mrkno/Kassy.git","clone_url":"https://github.com/mrkno/Kassy.git","svn_url":"https://github.com/mrkno/Kassy","homepage":"","size":4553,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":24,"forks":17,"open_issues":24,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrkno/Kassy/pulls/115"},"html":{"href":"https://github.com/mrkno/Kassy/pull/115"},"issue":{"href":"https://api.github.com/repos/mrkno/Kassy/issues/115"},"comments":{"href":"https://api.github.com/repos/mrkno/Kassy/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/mrkno/Kassy/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/mrkno/Kassy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrkno/Kassy/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/mrkno/Kassy/statuses/b817dcb78d07684a62fb21506584d0d138106f49"}}}}