{"action":"created","comment":{"url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/comments/222852439","pull_request_review_id":161841701,"id":222852439,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjg1MjQzOQ==","diff_hunk":"@@ -52,40 +45,25 @@ module.exports = {\n       help: 'get a random irc log for a given search term',\n       privileged: true,\n       aliases: ['ag'],\n-      command: function (bot, msg) {\n+      command: async function (bot, msg) {\n         if (msg.args.length === 1) {\n           return 'Usage: !irclog <search phrase>'\n         }\n-        var c = exec(esc([__rootdir + '/irclog.sh', msg.body]))\n-        var stdout = ''\n-        c.stdout.on('data', function (data) {\n-          stdout += data.toString()\n-        })\n-        c.stderr.on('data', function (data) {\n-          stdout += data.toString()\n-        })\n-        c.on('close', function () {\n-          bot.say(msg.to, processAg(stdout))\n-        })\n+        const res = await logExec([__rootdir + '/irclog.sh', msg.body])\n+        bot.say(msg.to, processAg(res))","path":"modules/irclog.js","position":66,"original_position":66,"commit_id":"59f56adff8f17e80d1e5d4197793a946f99f0b32","original_commit_id":"59f56adff8f17e80d1e5d4197793a946f99f0b32","user":{"login":"zuzak","id":817054,"node_id":"MDQ6VXNlcjgxNzA1NA==","avatar_url":"https://avatars2.githubusercontent.com/u/817054?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzak","html_url":"https://github.com/zuzak","followers_url":"https://api.github.com/users/zuzak/followers","following_url":"https://api.github.com/users/zuzak/following{/other_user}","gists_url":"https://api.github.com/users/zuzak/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzak/subscriptions","organizations_url":"https://api.github.com/users/zuzak/orgs","repos_url":"https://api.github.com/users/zuzak/repos","events_url":"https://api.github.com/users/zuzak/events{/privacy}","received_events_url":"https://api.github.com/users/zuzak/received_events","type":"User","site_admin":false},"body":"does this still have to be `bot.say()` or are we able to `return` a string?","created_at":"2018-10-04T23:01:15Z","updated_at":"2018-10-04T23:01:15Z","html_url":"https://github.com/zuzakistan/civilservant/pull/104#discussion_r222852439","pull_request_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/104","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/comments/222852439"},"html":{"href":"https://github.com/zuzakistan/civilservant/pull/104#discussion_r222852439"},"pull_request":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/104","id":220539630,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNTM5NjMw","html_url":"https://github.com/zuzakistan/civilservant/pull/104","diff_url":"https://github.com/zuzakistan/civilservant/pull/104.diff","patch_url":"https://github.com/zuzakistan/civilservant/pull/104.patch","issue_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/104","number":104,"state":"open","locked":false,"title":"irclog: fix highlight suppression on mobile and cleanup.","user":{"login":"danhedron","id":418211,"node_id":"MDQ6VXNlcjQxODIxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/418211?v=4","gravatar_id":"","url":"https://api.github.com/users/danhedron","html_url":"https://github.com/danhedron","followers_url":"https://api.github.com/users/danhedron/followers","following_url":"https://api.github.com/users/danhedron/following{/other_user}","gists_url":"https://api.github.com/users/danhedron/gists{/gist_id}","starred_url":"https://api.github.com/users/danhedron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danhedron/subscriptions","organizations_url":"https://api.github.com/users/danhedron/orgs","repos_url":"https://api.github.com/users/danhedron/repos","events_url":"https://api.github.com/users/danhedron/events{/privacy}","received_events_url":"https://api.github.com/users/danhedron/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-04T22:48:48Z","updated_at":"2018-10-04T23:01:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d89cf3b69e8935466b884fb2c49945f1db683f8","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kragniz","id":735008,"node_id":"MDQ6VXNlcjczNTAwOA==","avatar_url":"https://avatars2.githubusercontent.com/u/735008?v=4","gravatar_id":"","url":"https://api.github.com/users/kragniz","html_url":"https://github.com/kragniz","followers_url":"https://api.github.com/users/kragniz/followers","following_url":"https://api.github.com/users/kragniz/following{/other_user}","gists_url":"https://api.github.com/users/kragniz/gists{/gist_id}","starred_url":"https://api.github.com/users/kragniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kragniz/subscriptions","organizations_url":"https://api.github.com/users/kragniz/orgs","repos_url":"https://api.github.com/users/kragniz/repos","events_url":"https://api.github.com/users/kragniz/events{/privacy}","received_events_url":"https://api.github.com/users/kragniz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/104/commits","review_comments_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/104/comments","review_comment_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/104/comments","statuses_url":"https://api.github.com/repos/zuzakistan/civilservant/statuses/59f56adff8f17e80d1e5d4197793a946f99f0b32","head":{"label":"zuzakistan:fix/mentions_draft_final_(2)_final_docx","ref":"fix/mentions_draft_final_(2)_final_docx","sha":"59f56adff8f17e80d1e5d4197793a946f99f0b32","user":{"login":"zuzakistan","id":6226775,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjY3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6226775?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzakistan","html_url":"https://github.com/zuzakistan","followers_url":"https://api.github.com/users/zuzakistan/followers","following_url":"https://api.github.com/users/zuzakistan/following{/other_user}","gists_url":"https://api.github.com/users/zuzakistan/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzakistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzakistan/subscriptions","organizations_url":"https://api.github.com/users/zuzakistan/orgs","repos_url":"https://api.github.com/users/zuzakistan/repos","events_url":"https://api.github.com/users/zuzakistan/events{/privacy}","received_events_url":"https://api.github.com/users/zuzakistan/received_events","type":"Organization","site_admin":false},"repo":{"id":16521444,"node_id":"MDEwOlJlcG9zaXRvcnkxNjUyMTQ0NA==","name":"civilservant","full_name":"zuzakistan/civilservant","private":false,"owner":{"login":"zuzakistan","id":6226775,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjY3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6226775?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzakistan","html_url":"https://github.com/zuzakistan","followers_url":"https://api.github.com/users/zuzakistan/followers","following_url":"https://api.github.com/users/zuzakistan/following{/other_user}","gists_url":"https://api.github.com/users/zuzakistan/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzakistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzakistan/subscriptions","organizations_url":"https://api.github.com/users/zuzakistan/orgs","repos_url":"https://api.github.com/users/zuzakistan/repos","events_url":"https://api.github.com/users/zuzakistan/events{/privacy}","received_events_url":"https://api.github.com/users/zuzakistan/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/zuzakistan/civilservant","description":"Feature-crept IRC bot","fork":false,"url":"https://api.github.com/repos/zuzakistan/civilservant","forks_url":"https://api.github.com/repos/zuzakistan/civilservant/forks","keys_url":"https://api.github.com/repos/zuzakistan/civilservant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zuzakistan/civilservant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zuzakistan/civilservant/teams","hooks_url":"https://api.github.com/repos/zuzakistan/civilservant/hooks","issue_events_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/events{/number}","events_url":"https://api.github.com/repos/zuzakistan/civilservant/events","assignees_url":"https://api.github.com/repos/zuzakistan/civilservant/assignees{/user}","branches_url":"https://api.github.com/repos/zuzakistan/civilservant/branches{/branch}","tags_url":"https://api.github.com/repos/zuzakistan/civilservant/tags","blobs_url":"https://api.github.com/repos/zuzakistan/civilservant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zuzakistan/civilservant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zuzakistan/civilservant/git/refs{/sha}","trees_url":"https://api.github.com/repos/zuzakistan/civilservant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zuzakistan/civilservant/statuses/{sha}","languages_url":"https://api.github.com/repos/zuzakistan/civilservant/languages","stargazers_url":"https://api.github.com/repos/zuzakistan/civilservant/stargazers","contributors_url":"https://api.github.com/repos/zuzakistan/civilservant/contributors","subscribers_url":"https://api.github.com/repos/zuzakistan/civilservant/subscribers","subscription_url":"https://api.github.com/repos/zuzakistan/civilservant/subscription","commits_url":"https://api.github.com/repos/zuzakistan/civilservant/commits{/sha}","git_commits_url":"https://api.github.com/repos/zuzakistan/civilservant/git/commits{/sha}","comments_url":"https://api.github.com/repos/zuzakistan/civilservant/comments{/number}","issue_comment_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/comments{/number}","contents_url":"https://api.github.com/repos/zuzakistan/civilservant/contents/{+path}","compare_url":"https://api.github.com/repos/zuzakistan/civilservant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zuzakistan/civilservant/merges","archive_url":"https://api.github.com/repos/zuzakistan/civilservant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zuzakistan/civilservant/downloads","issues_url":"https://api.github.com/repos/zuzakistan/civilservant/issues{/number}","pulls_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls{/number}","milestones_url":"https://api.github.com/repos/zuzakistan/civilservant/milestones{/number}","notifications_url":"https://api.github.com/repos/zuzakistan/civilservant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zuzakistan/civilservant/labels{/name}","releases_url":"https://api.github.com/repos/zuzakistan/civilservant/releases{/id}","deployments_url":"https://api.github.com/repos/zuzakistan/civilservant/deployments","created_at":"2014-02-04T18:39:27Z","updated_at":"2018-10-04T22:20:55Z","pushed_at":"2018-10-04T22:59:27Z","git_url":"git://github.com/zuzakistan/civilservant.git","ssh_url":"git@github.com:zuzakistan/civilservant.git","clone_url":"https://github.com/zuzakistan/civilservant.git","svn_url":"https://github.com/zuzakistan/civilservant","homepage":"","size":368,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":3,"open_issues":49,"watchers":0,"default_branch":"master"}},"base":{"label":"zuzakistan:master","ref":"master","sha":"754b42161f51b04a943296952aaaf0b7652eed9f","user":{"login":"zuzakistan","id":6226775,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjY3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6226775?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzakistan","html_url":"https://github.com/zuzakistan","followers_url":"https://api.github.com/users/zuzakistan/followers","following_url":"https://api.github.com/users/zuzakistan/following{/other_user}","gists_url":"https://api.github.com/users/zuzakistan/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzakistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzakistan/subscriptions","organizations_url":"https://api.github.com/users/zuzakistan/orgs","repos_url":"https://api.github.com/users/zuzakistan/repos","events_url":"https://api.github.com/users/zuzakistan/events{/privacy}","received_events_url":"https://api.github.com/users/zuzakistan/received_events","type":"Organization","site_admin":false},"repo":{"id":16521444,"node_id":"MDEwOlJlcG9zaXRvcnkxNjUyMTQ0NA==","name":"civilservant","full_name":"zuzakistan/civilservant","private":false,"owner":{"login":"zuzakistan","id":6226775,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjY3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6226775?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzakistan","html_url":"https://github.com/zuzakistan","followers_url":"https://api.github.com/users/zuzakistan/followers","following_url":"https://api.github.com/users/zuzakistan/following{/other_user}","gists_url":"https://api.github.com/users/zuzakistan/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzakistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzakistan/subscriptions","organizations_url":"https://api.github.com/users/zuzakistan/orgs","repos_url":"https://api.github.com/users/zuzakistan/repos","events_url":"https://api.github.com/users/zuzakistan/events{/privacy}","received_events_url":"https://api.github.com/users/zuzakistan/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/zuzakistan/civilservant","description":"Feature-crept IRC bot","fork":false,"url":"https://api.github.com/repos/zuzakistan/civilservant","forks_url":"https://api.github.com/repos/zuzakistan/civilservant/forks","keys_url":"https://api.github.com/repos/zuzakistan/civilservant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zuzakistan/civilservant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zuzakistan/civilservant/teams","hooks_url":"https://api.github.com/repos/zuzakistan/civilservant/hooks","issue_events_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/events{/number}","events_url":"https://api.github.com/repos/zuzakistan/civilservant/events","assignees_url":"https://api.github.com/repos/zuzakistan/civilservant/assignees{/user}","branches_url":"https://api.github.com/repos/zuzakistan/civilservant/branches{/branch}","tags_url":"https://api.github.com/repos/zuzakistan/civilservant/tags","blobs_url":"https://api.github.com/repos/zuzakistan/civilservant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zuzakistan/civilservant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zuzakistan/civilservant/git/refs{/sha}","trees_url":"https://api.github.com/repos/zuzakistan/civilservant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zuzakistan/civilservant/statuses/{sha}","languages_url":"https://api.github.com/repos/zuzakistan/civilservant/languages","stargazers_url":"https://api.github.com/repos/zuzakistan/civilservant/stargazers","contributors_url":"https://api.github.com/repos/zuzakistan/civilservant/contributors","subscribers_url":"https://api.github.com/repos/zuzakistan/civilservant/subscribers","subscription_url":"https://api.github.com/repos/zuzakistan/civilservant/subscription","commits_url":"https://api.github.com/repos/zuzakistan/civilservant/commits{/sha}","git_commits_url":"https://api.github.com/repos/zuzakistan/civilservant/git/commits{/sha}","comments_url":"https://api.github.com/repos/zuzakistan/civilservant/comments{/number}","issue_comment_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/comments{/number}","contents_url":"https://api.github.com/repos/zuzakistan/civilservant/contents/{+path}","compare_url":"https://api.github.com/repos/zuzakistan/civilservant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zuzakistan/civilservant/merges","archive_url":"https://api.github.com/repos/zuzakistan/civilservant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zuzakistan/civilservant/downloads","issues_url":"https://api.github.com/repos/zuzakistan/civilservant/issues{/number}","pulls_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls{/number}","milestones_url":"https://api.github.com/repos/zuzakistan/civilservant/milestones{/number}","notifications_url":"https://api.github.com/repos/zuzakistan/civilservant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zuzakistan/civilservant/labels{/name}","releases_url":"https://api.github.com/repos/zuzakistan/civilservant/releases{/id}","deployments_url":"https://api.github.com/repos/zuzakistan/civilservant/deployments","created_at":"2014-02-04T18:39:27Z","updated_at":"2018-10-04T22:20:55Z","pushed_at":"2018-10-04T22:59:27Z","git_url":"git://github.com/zuzakistan/civilservant.git","ssh_url":"git@github.com:zuzakistan/civilservant.git","clone_url":"https://github.com/zuzakistan/civilservant.git","svn_url":"https://github.com/zuzakistan/civilservant","homepage":"","size":368,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":3,"open_issues":49,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/104"},"html":{"href":"https://github.com/zuzakistan/civilservant/pull/104"},"issue":{"href":"https://api.github.com/repos/zuzakistan/civilservant/issues/104"},"comments":{"href":"https://api.github.com/repos/zuzakistan/civilservant/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/zuzakistan/civilservant/statuses/59f56adff8f17e80d1e5d4197793a946f99f0b32"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zuzak"}}