{"action":"created","comment":{"url":"https://api.github.com/repos/oftn/oftn-bot/pulls/comments/34358764","id":34358764,"diff_hunk":"@@ -108,6 +119,78 @@ var Shared = module.exports = {\n \t\t\ttry {\n \t\t\t\t/* If theres an error, show that.\n \t\t\t\t   If not, show the type along with the result */\n+\t\t\t\tif (result.isJSEval) {\n+\t\t\t\t\tif (result.reason) {\n+\t\t\t\t\t\treply = result.reason;\n+\t\t\t\t\t}\n+\t\t\t\t\telse if (!result.success) {","path":"shared.js","position":71,"original_position":71,"commit_id":"06223b7000da4eef428f2af8c426b05435012893","original_commit_id":"06223b7000da4eef428f2af8c426b05435012893","user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"body":"Please use OTBS - ie, `} else {`. I believe the term is \"cuddled elses\"","created_at":"2015-07-10T14:26:53Z","updated_at":"2015-07-10T14:26:53Z","html_url":"https://github.com/oftn/oftn-bot/pull/47#discussion_r34358764","pull_request_url":"https://api.github.com/repos/oftn/oftn-bot/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/oftn/oftn-bot/pulls/comments/34358764"},"html":{"href":"https://github.com/oftn/oftn-bot/pull/47#discussion_r34358764"},"pull_request":{"href":"https://api.github.com/repos/oftn/oftn-bot/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/oftn/oftn-bot/pulls/47","id":32054079,"html_url":"https://github.com/oftn/oftn-bot/pull/47","diff_url":"https://github.com/oftn/oftn-bot/pull/47.diff","patch_url":"https://github.com/oftn/oftn-bot/pull/47.patch","issue_url":"https://api.github.com/repos/oftn/oftn-bot/issues/47","number":47,"state":"open","locked":false,"title":"add node.js and babel support","user":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"body":"Adds support for:\r\n\r\n```\r\nn> 5+5\r\nnode> 5+5\r\n\r\nb> 5+5\r\nbabel> 5+5\r\n```\r\n\r\nThese will fail if docker isn't installed.  Otherwise they will automatically download the image required to run these in a sandbox.  The command used:\r\n\r\n```js\r\n\"docker, [\"run\", \r\n// run in interactive mode, i.e. connect stdin to the process in the container's stdin\r\n\"-i\", \r\n// don't keep the image running after it completes the execution\r\n\"--rm\", \r\n// disallow all network access, like an unplugged computer with no wifi hardware\r\n\"--net=none\", \r\n// limit to 64mb of RAM usage\r\n\"-m=64m\", \r\n// 1024 means normal cpu priority, 128 means 'let other things interupt my usage at will'\r\n\"-c=128\", \r\n// this name uses a random id, which is used to kill it after the timeout duration\r\n\"--name=\" + childId, \r\n// the docker image to run, i.e. https://registry.hub.docker.com/u/brigand/js-eval/\r\n// which builds from the repo https://github.com/brigand/docker-js-eval\r\n\"brigand/js-eval\"]\r\n```\r\n\r\n","created_at":"2015-03-26T19:53:10Z","updated_at":"2015-07-10T14:26:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23635a1d6b4dd8c1d20dc03a1861d75b9668c49b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oftn/oftn-bot/pulls/47/commits","review_comments_url":"https://api.github.com/repos/oftn/oftn-bot/pulls/47/comments","review_comment_url":"https://api.github.com/repos/oftn/oftn-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oftn/oftn-bot/issues/47/comments","statuses_url":"https://api.github.com/repos/oftn/oftn-bot/statuses/06223b7000da4eef428f2af8c426b05435012893","head":{"label":"brigand:es6","ref":"es6","sha":"06223b7000da4eef428f2af8c426b05435012893","user":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"repo":{"id":32948585,"name":"oftn-bot","full_name":"brigand/oftn-bot","owner":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brigand/oftn-bot","description":"State of the art IRC bot library & bot for Node.js","fork":true,"url":"https://api.github.com/repos/brigand/oftn-bot","forks_url":"https://api.github.com/repos/brigand/oftn-bot/forks","keys_url":"https://api.github.com/repos/brigand/oftn-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brigand/oftn-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brigand/oftn-bot/teams","hooks_url":"https://api.github.com/repos/brigand/oftn-bot/hooks","issue_events_url":"https://api.github.com/repos/brigand/oftn-bot/issues/events{/number}","events_url":"https://api.github.com/repos/brigand/oftn-bot/events","assignees_url":"https://api.github.com/repos/brigand/oftn-bot/assignees{/user}","branches_url":"https://api.github.com/repos/brigand/oftn-bot/branches{/branch}","tags_url":"https://api.github.com/repos/brigand/oftn-bot/tags","blobs_url":"https://api.github.com/repos/brigand/oftn-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brigand/oftn-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brigand/oftn-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/brigand/oftn-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brigand/oftn-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/brigand/oftn-bot/languages","stargazers_url":"https://api.github.com/repos/brigand/oftn-bot/stargazers","contributors_url":"https://api.github.com/repos/brigand/oftn-bot/contributors","subscribers_url":"https://api.github.com/repos/brigand/oftn-bot/subscribers","subscription_url":"https://api.github.com/repos/brigand/oftn-bot/subscription","commits_url":"https://api.github.com/repos/brigand/oftn-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/brigand/oftn-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/brigand/oftn-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/brigand/oftn-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/brigand/oftn-bot/contents/{+path}","compare_url":"https://api.github.com/repos/brigand/oftn-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brigand/oftn-bot/merges","archive_url":"https://api.github.com/repos/brigand/oftn-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brigand/oftn-bot/downloads","issues_url":"https://api.github.com/repos/brigand/oftn-bot/issues{/number}","pulls_url":"https://api.github.com/repos/brigand/oftn-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/brigand/oftn-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/brigand/oftn-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brigand/oftn-bot/labels{/name}","releases_url":"https://api.github.com/repos/brigand/oftn-bot/releases{/id}","created_at":"2015-03-26T19:51:24Z","updated_at":"2015-03-26T19:51:24Z","pushed_at":"2015-07-09T07:21:46Z","git_url":"git://github.com/brigand/oftn-bot.git","ssh_url":"git@github.com:brigand/oftn-bot.git","clone_url":"https://github.com/brigand/oftn-bot.git","svn_url":"https://github.com/brigand/oftn-bot","homepage":"http://wg.oftn.org/#projects","size":702,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"oftn:master","ref":"master","sha":"264f675e55761d050998f008aa77bc1c2ba0513b","user":{"login":"oftn","id":535883,"avatar_url":"https://avatars.githubusercontent.com/u/535883?v=3","gravatar_id":"","url":"https://api.github.com/users/oftn","html_url":"https://github.com/oftn","followers_url":"https://api.github.com/users/oftn/followers","following_url":"https://api.github.com/users/oftn/following{/other_user}","gists_url":"https://api.github.com/users/oftn/gists{/gist_id}","starred_url":"https://api.github.com/users/oftn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oftn/subscriptions","organizations_url":"https://api.github.com/users/oftn/orgs","repos_url":"https://api.github.com/users/oftn/repos","events_url":"https://api.github.com/users/oftn/events{/privacy}","received_events_url":"https://api.github.com/users/oftn/received_events","type":"Organization","site_admin":false},"repo":{"id":1954259,"name":"oftn-bot","full_name":"oftn/oftn-bot","owner":{"login":"oftn","id":535883,"avatar_url":"https://avatars.githubusercontent.com/u/535883?v=3","gravatar_id":"","url":"https://api.github.com/users/oftn","html_url":"https://github.com/oftn","followers_url":"https://api.github.com/users/oftn/followers","following_url":"https://api.github.com/users/oftn/following{/other_user}","gists_url":"https://api.github.com/users/oftn/gists{/gist_id}","starred_url":"https://api.github.com/users/oftn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oftn/subscriptions","organizations_url":"https://api.github.com/users/oftn/orgs","repos_url":"https://api.github.com/users/oftn/repos","events_url":"https://api.github.com/users/oftn/events{/privacy}","received_events_url":"https://api.github.com/users/oftn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oftn/oftn-bot","description":"State of the art IRC bot library & bot for Node.js","fork":false,"url":"https://api.github.com/repos/oftn/oftn-bot","forks_url":"https://api.github.com/repos/oftn/oftn-bot/forks","keys_url":"https://api.github.com/repos/oftn/oftn-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oftn/oftn-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oftn/oftn-bot/teams","hooks_url":"https://api.github.com/repos/oftn/oftn-bot/hooks","issue_events_url":"https://api.github.com/repos/oftn/oftn-bot/issues/events{/number}","events_url":"https://api.github.com/repos/oftn/oftn-bot/events","assignees_url":"https://api.github.com/repos/oftn/oftn-bot/assignees{/user}","branches_url":"https://api.github.com/repos/oftn/oftn-bot/branches{/branch}","tags_url":"https://api.github.com/repos/oftn/oftn-bot/tags","blobs_url":"https://api.github.com/repos/oftn/oftn-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oftn/oftn-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oftn/oftn-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/oftn/oftn-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oftn/oftn-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/oftn/oftn-bot/languages","stargazers_url":"https://api.github.com/repos/oftn/oftn-bot/stargazers","contributors_url":"https://api.github.com/repos/oftn/oftn-bot/contributors","subscribers_url":"https://api.github.com/repos/oftn/oftn-bot/subscribers","subscription_url":"https://api.github.com/repos/oftn/oftn-bot/subscription","commits_url":"https://api.github.com/repos/oftn/oftn-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/oftn/oftn-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/oftn/oftn-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/oftn/oftn-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/oftn/oftn-bot/contents/{+path}","compare_url":"https://api.github.com/repos/oftn/oftn-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oftn/oftn-bot/merges","archive_url":"https://api.github.com/repos/oftn/oftn-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oftn/oftn-bot/downloads","issues_url":"https://api.github.com/repos/oftn/oftn-bot/issues{/number}","pulls_url":"https://api.github.com/repos/oftn/oftn-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/oftn/oftn-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/oftn/oftn-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oftn/oftn-bot/labels{/name}","releases_url":"https://api.github.com/repos/oftn/oftn-bot/releases{/id}","created_at":"2011-06-26T01:04:24Z","updated_at":"2015-07-08T22:46:22Z","pushed_at":"2015-07-09T07:21:47Z","git_url":"git://github.com/oftn/oftn-bot.git","ssh_url":"git@github.com:oftn/oftn-bot.git","clone_url":"https://github.com/oftn/oftn-bot.git","svn_url":"https://github.com/oftn/oftn-bot","homepage":"http://wg.oftn.org/#projects","size":1134,"stargazers_count":60,"watchers_count":60,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":15,"forks":25,"open_issues":15,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oftn/oftn-bot/pulls/47"},"html":{"href":"https://github.com/oftn/oftn-bot/pull/47"},"issue":{"href":"https://api.github.com/repos/oftn/oftn-bot/issues/47"},"comments":{"href":"https://api.github.com/repos/oftn/oftn-bot/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/oftn/oftn-bot/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/oftn/oftn-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oftn/oftn-bot/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/oftn/oftn-bot/statuses/06223b7000da4eef428f2af8c426b05435012893"}}}}