{"action":"created","comment":{"url":"https://api.github.com/repos/LJNeon/ffa/pulls/comments/207413218","pull_request_review_id":143022053,"id":207413218,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzQxMzIxOA==","diff_hunk":"@@ -0,0 +1,148 @@\n+/**\n+ * FFA - The core control of the free-for-all discord server.\n+ * Copyright (c) 2018 FFA contributors\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Affero General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License\n+ * along with this program. If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\"use strict\";\n+const {Command, CommandResult, Context} = require(\"patron.js\");\n+const client = require(\"../../services/client.js\");\n+const db = require(\"../../services/database.js\");\n+const message = require(\"../../utilities/message.js\");\n+const {data: {queries, responses}} = require(\"../../services/data.js\");\n+const str = require(\"../../utilities/string.js\");\n+\n+function getLogList(logs) {\n+  if (logs.length === 0)\n+    return \"None\";\n+\n+  return logs.map(log => `* #${log.log_id}: ${log.data.evidence}`).join(\"\\n\");\n+}\n+\n+function getMessageList(msgs) {\n+  if (msgs.length === 0)\n+    return \"None\";\n+\n+  return msgs.map(msg => {\n+    const channel = client.getChannel(msg.channel_id);\n+    const guild = client.guilds.get(msg.guild_id);\n+\n+    return str.format(\n+      responses.msgList,\n+      msg.id,\n+      guild == null ? msg.guild_id : `${guild.name} (${guild.id})`,\n+      channel == null ? msg.channel_id : `#${channel.name} (${channel.id})`,\n+      msg.revisions.map((r, i) => {","path":"src/commands/privacy/Data.js","position":46,"original_position":46,"commit_id":"570b0da4eb4998073163ff752717ca6f511048ea","original_commit_id":"570b0da4eb4998073163ff752717ca6f511048ea","user":{"login":"LJNeon","id":23249107,"node_id":"MDQ6VXNlcjIzMjQ5MTA3","avatar_url":"https://avatars0.githubusercontent.com/u/23249107?v=4","gravatar_id":"","url":"https://api.github.com/users/LJNeon","html_url":"https://github.com/LJNeon","followers_url":"https://api.github.com/users/LJNeon/followers","following_url":"https://api.github.com/users/LJNeon/following{/other_user}","gists_url":"https://api.github.com/users/LJNeon/gists{/gist_id}","starred_url":"https://api.github.com/users/LJNeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LJNeon/subscriptions","organizations_url":"https://api.github.com/users/LJNeon/orgs","repos_url":"https://api.github.com/users/LJNeon/repos","events_url":"https://api.github.com/users/LJNeon/events{/privacy}","received_events_url":"https://api.github.com/users/LJNeon/received_events","type":"User","site_admin":false},"body":"a revision","created_at":"2018-08-03T00:30:25Z","updated_at":"2018-08-03T00:30:25Z","html_url":"https://github.com/LJNeon/ffa/pull/8#discussion_r207413218","pull_request_url":"https://api.github.com/repos/LJNeon/ffa/pulls/8","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/LJNeon/ffa/pulls/comments/207413218"},"html":{"href":"https://github.com/LJNeon/ffa/pull/8#discussion_r207413218"},"pull_request":{"href":"https://api.github.com/repos/LJNeon/ffa/pulls/8"}},"in_reply_to_id":207323207},"pull_request":{"url":"https://api.github.com/repos/LJNeon/ffa/pulls/8","id":204614400,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NjE0NDAw","html_url":"https://github.com/LJNeon/ffa/pull/8","diff_url":"https://github.com/LJNeon/ffa/pull/8.diff","patch_url":"https://github.com/LJNeon/ffa/pull/8.patch","issue_url":"https://api.github.com/repos/LJNeon/ffa/issues/8","number":8,"state":"open","locked":false,"title":"0.4.0","user":{"login":"LJNeon","id":23249107,"node_id":"MDQ6VXNlcjIzMjQ5MTA3","avatar_url":"https://avatars0.githubusercontent.com/u/23249107?v=4","gravatar_id":"","url":"https://api.github.com/users/LJNeon","html_url":"https://github.com/LJNeon","followers_url":"https://api.github.com/users/LJNeon/followers","following_url":"https://api.github.com/users/LJNeon/following{/other_user}","gists_url":"https://api.github.com/users/LJNeon/gists{/gist_id}","starred_url":"https://api.github.com/users/LJNeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LJNeon/subscriptions","organizations_url":"https://api.github.com/users/LJNeon/orgs","repos_url":"https://api.github.com/users/LJNeon/repos","events_url":"https://api.github.com/users/LJNeon/events{/privacy}","received_events_url":"https://api.github.com/users/LJNeon/received_events","type":"User","site_admin":false},"body":"See #5.","created_at":"2018-07-28T22:49:33Z","updated_at":"2018-08-03T00:30:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LJNeon/ffa/pulls/8/commits","review_comments_url":"https://api.github.com/repos/LJNeon/ffa/pulls/8/comments","review_comment_url":"https://api.github.com/repos/LJNeon/ffa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LJNeon/ffa/issues/8/comments","statuses_url":"https://api.github.com/repos/LJNeon/ffa/statuses/570b0da4eb4998073163ff752717ca6f511048ea","head":{"label":"LJNeon:dev","ref":"dev","sha":"570b0da4eb4998073163ff752717ca6f511048ea","user":{"login":"LJNeon","id":23249107,"node_id":"MDQ6VXNlcjIzMjQ5MTA3","avatar_url":"https://avatars0.githubusercontent.com/u/23249107?v=4","gravatar_id":"","url":"https://api.github.com/users/LJNeon","html_url":"https://github.com/LJNeon","followers_url":"https://api.github.com/users/LJNeon/followers","following_url":"https://api.github.com/users/LJNeon/following{/other_user}","gists_url":"https://api.github.com/users/LJNeon/gists{/gist_id}","starred_url":"https://api.github.com/users/LJNeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LJNeon/subscriptions","organizations_url":"https://api.github.com/users/LJNeon/orgs","repos_url":"https://api.github.com/users/LJNeon/repos","events_url":"https://api.github.com/users/LJNeon/events{/privacy}","received_events_url":"https://api.github.com/users/LJNeon/received_events","type":"User","site_admin":false},"repo":{"id":134101982,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQxMDE5ODI=","name":"ffa","full_name":"LJNeon/ffa","owner":{"login":"LJNeon","id":23249107,"node_id":"MDQ6VXNlcjIzMjQ5MTA3","avatar_url":"https://avatars0.githubusercontent.com/u/23249107?v=4","gravatar_id":"","url":"https://api.github.com/users/LJNeon","html_url":"https://github.com/LJNeon","followers_url":"https://api.github.com/users/LJNeon/followers","following_url":"https://api.github.com/users/LJNeon/following{/other_user}","gists_url":"https://api.github.com/users/LJNeon/gists{/gist_id}","starred_url":"https://api.github.com/users/LJNeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LJNeon/subscriptions","organizations_url":"https://api.github.com/users/LJNeon/orgs","repos_url":"https://api.github.com/users/LJNeon/repos","events_url":"https://api.github.com/users/LJNeon/events{/privacy}","received_events_url":"https://api.github.com/users/LJNeon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LJNeon/ffa","description":"The core control of the only fully decentralized discord server.","fork":false,"url":"https://api.github.com/repos/LJNeon/ffa","forks_url":"https://api.github.com/repos/LJNeon/ffa/forks","keys_url":"https://api.github.com/repos/LJNeon/ffa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LJNeon/ffa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LJNeon/ffa/teams","hooks_url":"https://api.github.com/repos/LJNeon/ffa/hooks","issue_events_url":"https://api.github.com/repos/LJNeon/ffa/issues/events{/number}","events_url":"https://api.github.com/repos/LJNeon/ffa/events","assignees_url":"https://api.github.com/repos/LJNeon/ffa/assignees{/user}","branches_url":"https://api.github.com/repos/LJNeon/ffa/branches{/branch}","tags_url":"https://api.github.com/repos/LJNeon/ffa/tags","blobs_url":"https://api.github.com/repos/LJNeon/ffa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LJNeon/ffa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LJNeon/ffa/git/refs{/sha}","trees_url":"https://api.github.com/repos/LJNeon/ffa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LJNeon/ffa/statuses/{sha}","languages_url":"https://api.github.com/repos/LJNeon/ffa/languages","stargazers_url":"https://api.github.com/repos/LJNeon/ffa/stargazers","contributors_url":"https://api.github.com/repos/LJNeon/ffa/contributors","subscribers_url":"https://api.github.com/repos/LJNeon/ffa/subscribers","subscription_url":"https://api.github.com/repos/LJNeon/ffa/subscription","commits_url":"https://api.github.com/repos/LJNeon/ffa/commits{/sha}","git_commits_url":"https://api.github.com/repos/LJNeon/ffa/git/commits{/sha}","comments_url":"https://api.github.com/repos/LJNeon/ffa/comments{/number}","issue_comment_url":"https://api.github.com/repos/LJNeon/ffa/issues/comments{/number}","contents_url":"https://api.github.com/repos/LJNeon/ffa/contents/{+path}","compare_url":"https://api.github.com/repos/LJNeon/ffa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LJNeon/ffa/merges","archive_url":"https://api.github.com/repos/LJNeon/ffa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LJNeon/ffa/downloads","issues_url":"https://api.github.com/repos/LJNeon/ffa/issues{/number}","pulls_url":"https://api.github.com/repos/LJNeon/ffa/pulls{/number}","milestones_url":"https://api.github.com/repos/LJNeon/ffa/milestones{/number}","notifications_url":"https://api.github.com/repos/LJNeon/ffa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LJNeon/ffa/labels{/name}","releases_url":"https://api.github.com/repos/LJNeon/ffa/releases{/id}","deployments_url":"https://api.github.com/repos/LJNeon/ffa/deployments","created_at":"2018-05-19T22:19:06Z","updated_at":"2018-07-21T15:57:47Z","pushed_at":"2018-07-28T22:49:34Z","git_url":"git://github.com/LJNeon/ffa.git","ssh_url":"git@github.com:LJNeon/ffa.git","clone_url":"https://github.com/LJNeon/ffa.git","svn_url":"https://github.com/LJNeon/ffa","homepage":null,"size":657,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":2,"open_issues":2,"watchers":6,"default_branch":"master"}},"base":{"label":"LJNeon:master","ref":"master","sha":"3ec58453b54bd3c688b86038c14ae8c4fb38548a","user":{"login":"LJNeon","id":23249107,"node_id":"MDQ6VXNlcjIzMjQ5MTA3","avatar_url":"https://avatars0.githubusercontent.com/u/23249107?v=4","gravatar_id":"","url":"https://api.github.com/users/LJNeon","html_url":"https://github.com/LJNeon","followers_url":"https://api.github.com/users/LJNeon/followers","following_url":"https://api.github.com/users/LJNeon/following{/other_user}","gists_url":"https://api.github.com/users/LJNeon/gists{/gist_id}","starred_url":"https://api.github.com/users/LJNeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LJNeon/subscriptions","organizations_url":"https://api.github.com/users/LJNeon/orgs","repos_url":"https://api.github.com/users/LJNeon/repos","events_url":"https://api.github.com/users/LJNeon/events{/privacy}","received_events_url":"https://api.github.com/users/LJNeon/received_events","type":"User","site_admin":false},"repo":{"id":134101982,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQxMDE5ODI=","name":"ffa","full_name":"LJNeon/ffa","owner":{"login":"LJNeon","id":23249107,"node_id":"MDQ6VXNlcjIzMjQ5MTA3","avatar_url":"https://avatars0.githubusercontent.com/u/23249107?v=4","gravatar_id":"","url":"https://api.github.com/users/LJNeon","html_url":"https://github.com/LJNeon","followers_url":"https://api.github.com/users/LJNeon/followers","following_url":"https://api.github.com/users/LJNeon/following{/other_user}","gists_url":"https://api.github.com/users/LJNeon/gists{/gist_id}","starred_url":"https://api.github.com/users/LJNeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LJNeon/subscriptions","organizations_url":"https://api.github.com/users/LJNeon/orgs","repos_url":"https://api.github.com/users/LJNeon/repos","events_url":"https://api.github.com/users/LJNeon/events{/privacy}","received_events_url":"https://api.github.com/users/LJNeon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LJNeon/ffa","description":"The core control of the only fully decentralized discord server.","fork":false,"url":"https://api.github.com/repos/LJNeon/ffa","forks_url":"https://api.github.com/repos/LJNeon/ffa/forks","keys_url":"https://api.github.com/repos/LJNeon/ffa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LJNeon/ffa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LJNeon/ffa/teams","hooks_url":"https://api.github.com/repos/LJNeon/ffa/hooks","issue_events_url":"https://api.github.com/repos/LJNeon/ffa/issues/events{/number}","events_url":"https://api.github.com/repos/LJNeon/ffa/events","assignees_url":"https://api.github.com/repos/LJNeon/ffa/assignees{/user}","branches_url":"https://api.github.com/repos/LJNeon/ffa/branches{/branch}","tags_url":"https://api.github.com/repos/LJNeon/ffa/tags","blobs_url":"https://api.github.com/repos/LJNeon/ffa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LJNeon/ffa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LJNeon/ffa/git/refs{/sha}","trees_url":"https://api.github.com/repos/LJNeon/ffa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LJNeon/ffa/statuses/{sha}","languages_url":"https://api.github.com/repos/LJNeon/ffa/languages","stargazers_url":"https://api.github.com/repos/LJNeon/ffa/stargazers","contributors_url":"https://api.github.com/repos/LJNeon/ffa/contributors","subscribers_url":"https://api.github.com/repos/LJNeon/ffa/subscribers","subscription_url":"https://api.github.com/repos/LJNeon/ffa/subscription","commits_url":"https://api.github.com/repos/LJNeon/ffa/commits{/sha}","git_commits_url":"https://api.github.com/repos/LJNeon/ffa/git/commits{/sha}","comments_url":"https://api.github.com/repos/LJNeon/ffa/comments{/number}","issue_comment_url":"https://api.github.com/repos/LJNeon/ffa/issues/comments{/number}","contents_url":"https://api.github.com/repos/LJNeon/ffa/contents/{+path}","compare_url":"https://api.github.com/repos/LJNeon/ffa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LJNeon/ffa/merges","archive_url":"https://api.github.com/repos/LJNeon/ffa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LJNeon/ffa/downloads","issues_url":"https://api.github.com/repos/LJNeon/ffa/issues{/number}","pulls_url":"https://api.github.com/repos/LJNeon/ffa/pulls{/number}","milestones_url":"https://api.github.com/repos/LJNeon/ffa/milestones{/number}","notifications_url":"https://api.github.com/repos/LJNeon/ffa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LJNeon/ffa/labels{/name}","releases_url":"https://api.github.com/repos/LJNeon/ffa/releases{/id}","deployments_url":"https://api.github.com/repos/LJNeon/ffa/deployments","created_at":"2018-05-19T22:19:06Z","updated_at":"2018-07-21T15:57:47Z","pushed_at":"2018-07-28T22:49:34Z","git_url":"git://github.com/LJNeon/ffa.git","ssh_url":"git@github.com:LJNeon/ffa.git","clone_url":"https://github.com/LJNeon/ffa.git","svn_url":"https://github.com/LJNeon/ffa","homepage":null,"size":657,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":2,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LJNeon/ffa/pulls/8"},"html":{"href":"https://github.com/LJNeon/ffa/pull/8"},"issue":{"href":"https://api.github.com/repos/LJNeon/ffa/issues/8"},"comments":{"href":"https://api.github.com/repos/LJNeon/ffa/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/LJNeon/ffa/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/LJNeon/ffa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LJNeon/ffa/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/LJNeon/ffa/statuses/570b0da4eb4998073163ff752717ca6f511048ea"}},"author_association":"OWNER"}}
{"actor":{"display_login":"LJNeon"}}