{"action":"created","comment":{"url":"https://api.github.com/repos/strinking/futaba/pulls/comments/229357523","pull_request_review_id":169839343,"id":229357523,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTM1NzUyMw==","diff_hunk":"@@ -342,3 +343,55 @@ def mention(role):\n \n         await ctx.send(embed=embed)\n         self.journal.send(\"roles/jail\", ctx.guild, content, icon=\"settings\", role=role)\n+\n+    @commands.command(name=\"trackblacklistadd\")","path":"futaba/cogs/settings/core.py","position":20,"original_position":20,"commit_id":"b22fc0bc7650eb82ccb208d426da50eae4e6e310","original_commit_id":"b22fc0bc7650eb82ccb208d426da50eae4e6e310","user":{"login":"ammongit","id":8848022,"node_id":"MDQ6VXNlcjg4NDgwMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/8848022?v=4","gravatar_id":"","url":"https://api.github.com/users/ammongit","html_url":"https://github.com/ammongit","followers_url":"https://api.github.com/users/ammongit/followers","following_url":"https://api.github.com/users/ammongit/following{/other_user}","gists_url":"https://api.github.com/users/ammongit/gists{/gist_id}","starred_url":"https://api.github.com/users/ammongit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammongit/subscriptions","organizations_url":"https://api.github.com/users/ammongit/orgs","repos_url":"https://api.github.com/users/ammongit/repos","events_url":"https://api.github.com/users/ammongit/events{/privacy}","received_events_url":"https://api.github.com/users/ammongit/received_events","type":"User","site_admin":false},"body":"There should be at least one alias that shortens this command. Given that this follows the add/remove pattern, I think it's best split out into a command group (\"trackerblacklist\") with subcommands (\"add\", \"remove\", \"show\"...) (see `!role`)","created_at":"2018-10-30T15:31:29Z","updated_at":"2018-10-30T15:48:57Z","html_url":"https://github.com/strinking/futaba/pull/183#discussion_r229357523","pull_request_url":"https://api.github.com/repos/strinking/futaba/pulls/183","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/strinking/futaba/pulls/comments/229357523"},"html":{"href":"https://github.com/strinking/futaba/pull/183#discussion_r229357523"},"pull_request":{"href":"https://api.github.com/repos/strinking/futaba/pulls/183"}}},"pull_request":{"url":"https://api.github.com/repos/strinking/futaba/pulls/183","id":226966022,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2OTY2MDIy","html_url":"https://github.com/strinking/futaba/pull/183","diff_url":"https://github.com/strinking/futaba/pull/183.diff","patch_url":"https://github.com/strinking/futaba/pull/183.patch","issue_url":"https://api.github.com/repos/strinking/futaba/issues/183","number":183,"state":"open","locked":false,"title":"Implement tracker blacklist","user":{"login":"nitros12","id":5330444,"node_id":"MDQ6VXNlcjUzMzA0NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5330444?v=4","gravatar_id":"","url":"https://api.github.com/users/nitros12","html_url":"https://github.com/nitros12","followers_url":"https://api.github.com/users/nitros12/followers","following_url":"https://api.github.com/users/nitros12/following{/other_user}","gists_url":"https://api.github.com/users/nitros12/gists{/gist_id}","starred_url":"https://api.github.com/users/nitros12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitros12/subscriptions","organizations_url":"https://api.github.com/users/nitros12/orgs","repos_url":"https://api.github.com/users/nitros12/repos","events_url":"https://api.github.com/users/nitros12/events{/privacy}","received_events_url":"https://api.github.com/users/nitros12/received_events","type":"User","site_admin":false},"body":"Resolves: #169 \r\n\r\nAdds the commands: `trackblacklistadd` and `trackblacklistremove`.\r\n\r\nAdds a new enum type:\r\n```sql\r\nCREATE TYPE trackingblacklisttype AS ENUM (\r\n    'USER',\r\n    'CHAN'\r\n);\r\n```\r\nAdds a new table:\r\n```sql\r\nCREATE TABLE tracking_blacklists (\r\n    guild_id bigint NOT NULL,\r\n    type trackingblacklisttype NOT NULL,\r\n    data_id bigint NOT NULL\r\n);\r\n\r\nALTER TABLE ONLY tracking_blacklists\r\n    ADD CONSTRAINT tracking_blacklists_pkey PRIMARY KEY (guild_id, type, data_id);\r\n\r\nALTER TABLE ONLY tracking_blacklists\r\n    ADD CONSTRAINT tracking_blacklists_guild_id_fkey FOREIGN KEY (guild_id) REFERENCES guilds(guild_id);\r\n```","created_at":"2018-10-30T15:19:51Z","updated_at":"2018-10-30T15:48:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2d300b5d878e12390dd22dfba0620b13db12c02","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/strinking/futaba/pulls/183/commits","review_comments_url":"https://api.github.com/repos/strinking/futaba/pulls/183/comments","review_comment_url":"https://api.github.com/repos/strinking/futaba/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strinking/futaba/issues/183/comments","statuses_url":"https://api.github.com/repos/strinking/futaba/statuses/b22fc0bc7650eb82ccb208d426da50eae4e6e310","head":{"label":"nitros12:blacklist_users_or_channels_from_tracker","ref":"blacklist_users_or_channels_from_tracker","sha":"b22fc0bc7650eb82ccb208d426da50eae4e6e310","user":{"login":"nitros12","id":5330444,"node_id":"MDQ6VXNlcjUzMzA0NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5330444?v=4","gravatar_id":"","url":"https://api.github.com/users/nitros12","html_url":"https://github.com/nitros12","followers_url":"https://api.github.com/users/nitros12/followers","following_url":"https://api.github.com/users/nitros12/following{/other_user}","gists_url":"https://api.github.com/users/nitros12/gists{/gist_id}","starred_url":"https://api.github.com/users/nitros12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitros12/subscriptions","organizations_url":"https://api.github.com/users/nitros12/orgs","repos_url":"https://api.github.com/users/nitros12/repos","events_url":"https://api.github.com/users/nitros12/events{/privacy}","received_events_url":"https://api.github.com/users/nitros12/received_events","type":"User","site_admin":false},"repo":{"id":155100970,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUxMDA5NzA=","name":"futaba","full_name":"nitros12/futaba","private":false,"owner":{"login":"nitros12","id":5330444,"node_id":"MDQ6VXNlcjUzMzA0NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5330444?v=4","gravatar_id":"","url":"https://api.github.com/users/nitros12","html_url":"https://github.com/nitros12","followers_url":"https://api.github.com/users/nitros12/followers","following_url":"https://api.github.com/users/nitros12/following{/other_user}","gists_url":"https://api.github.com/users/nitros12/gists{/gist_id}","starred_url":"https://api.github.com/users/nitros12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitros12/subscriptions","organizations_url":"https://api.github.com/users/nitros12/orgs","repos_url":"https://api.github.com/users/nitros12/repos","events_url":"https://api.github.com/users/nitros12/events{/privacy}","received_events_url":"https://api.github.com/users/nitros12/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nitros12/futaba","description":"A Discord bot for the Programming server","fork":true,"url":"https://api.github.com/repos/nitros12/futaba","forks_url":"https://api.github.com/repos/nitros12/futaba/forks","keys_url":"https://api.github.com/repos/nitros12/futaba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nitros12/futaba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nitros12/futaba/teams","hooks_url":"https://api.github.com/repos/nitros12/futaba/hooks","issue_events_url":"https://api.github.com/repos/nitros12/futaba/issues/events{/number}","events_url":"https://api.github.com/repos/nitros12/futaba/events","assignees_url":"https://api.github.com/repos/nitros12/futaba/assignees{/user}","branches_url":"https://api.github.com/repos/nitros12/futaba/branches{/branch}","tags_url":"https://api.github.com/repos/nitros12/futaba/tags","blobs_url":"https://api.github.com/repos/nitros12/futaba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nitros12/futaba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nitros12/futaba/git/refs{/sha}","trees_url":"https://api.github.com/repos/nitros12/futaba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nitros12/futaba/statuses/{sha}","languages_url":"https://api.github.com/repos/nitros12/futaba/languages","stargazers_url":"https://api.github.com/repos/nitros12/futaba/stargazers","contributors_url":"https://api.github.com/repos/nitros12/futaba/contributors","subscribers_url":"https://api.github.com/repos/nitros12/futaba/subscribers","subscription_url":"https://api.github.com/repos/nitros12/futaba/subscription","commits_url":"https://api.github.com/repos/nitros12/futaba/commits{/sha}","git_commits_url":"https://api.github.com/repos/nitros12/futaba/git/commits{/sha}","comments_url":"https://api.github.com/repos/nitros12/futaba/comments{/number}","issue_comment_url":"https://api.github.com/repos/nitros12/futaba/issues/comments{/number}","contents_url":"https://api.github.com/repos/nitros12/futaba/contents/{+path}","compare_url":"https://api.github.com/repos/nitros12/futaba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nitros12/futaba/merges","archive_url":"https://api.github.com/repos/nitros12/futaba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nitros12/futaba/downloads","issues_url":"https://api.github.com/repos/nitros12/futaba/issues{/number}","pulls_url":"https://api.github.com/repos/nitros12/futaba/pulls{/number}","milestones_url":"https://api.github.com/repos/nitros12/futaba/milestones{/number}","notifications_url":"https://api.github.com/repos/nitros12/futaba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nitros12/futaba/labels{/name}","releases_url":"https://api.github.com/repos/nitros12/futaba/releases{/id}","deployments_url":"https://api.github.com/repos/nitros12/futaba/deployments","created_at":"2018-10-28T18:14:31Z","updated_at":"2018-10-30T12:57:26Z","pushed_at":"2018-10-30T15:12:25Z","git_url":"git://github.com/nitros12/futaba.git","ssh_url":"git@github.com:nitros12/futaba.git","clone_url":"https://github.com/nitros12/futaba.git","svn_url":"https://github.com/nitros12/futaba","homepage":"","size":1473,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"strinking:master","ref":"master","sha":"5376a4b453124b6c303c20aa2794a6ae120c23aa","user":{"login":"strinking","id":29065127,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MDY1MTI3","avatar_url":"https://avatars3.githubusercontent.com/u/29065127?v=4","gravatar_id":"","url":"https://api.github.com/users/strinking","html_url":"https://github.com/strinking","followers_url":"https://api.github.com/users/strinking/followers","following_url":"https://api.github.com/users/strinking/following{/other_user}","gists_url":"https://api.github.com/users/strinking/gists{/gist_id}","starred_url":"https://api.github.com/users/strinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strinking/subscriptions","organizations_url":"https://api.github.com/users/strinking/orgs","repos_url":"https://api.github.com/users/strinking/repos","events_url":"https://api.github.com/users/strinking/events{/privacy}","received_events_url":"https://api.github.com/users/strinking/received_events","type":"Organization","site_admin":false},"repo":{"id":115220835,"node_id":"MDEwOlJlcG9zaXRvcnkxMTUyMjA4MzU=","name":"futaba","full_name":"strinking/futaba","private":false,"owner":{"login":"strinking","id":29065127,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MDY1MTI3","avatar_url":"https://avatars3.githubusercontent.com/u/29065127?v=4","gravatar_id":"","url":"https://api.github.com/users/strinking","html_url":"https://github.com/strinking","followers_url":"https://api.github.com/users/strinking/followers","following_url":"https://api.github.com/users/strinking/following{/other_user}","gists_url":"https://api.github.com/users/strinking/gists{/gist_id}","starred_url":"https://api.github.com/users/strinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strinking/subscriptions","organizations_url":"https://api.github.com/users/strinking/orgs","repos_url":"https://api.github.com/users/strinking/repos","events_url":"https://api.github.com/users/strinking/events{/privacy}","received_events_url":"https://api.github.com/users/strinking/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/strinking/futaba","description":"A Discord bot for the Programming server","fork":false,"url":"https://api.github.com/repos/strinking/futaba","forks_url":"https://api.github.com/repos/strinking/futaba/forks","keys_url":"https://api.github.com/repos/strinking/futaba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strinking/futaba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strinking/futaba/teams","hooks_url":"https://api.github.com/repos/strinking/futaba/hooks","issue_events_url":"https://api.github.com/repos/strinking/futaba/issues/events{/number}","events_url":"https://api.github.com/repos/strinking/futaba/events","assignees_url":"https://api.github.com/repos/strinking/futaba/assignees{/user}","branches_url":"https://api.github.com/repos/strinking/futaba/branches{/branch}","tags_url":"https://api.github.com/repos/strinking/futaba/tags","blobs_url":"https://api.github.com/repos/strinking/futaba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strinking/futaba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strinking/futaba/git/refs{/sha}","trees_url":"https://api.github.com/repos/strinking/futaba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strinking/futaba/statuses/{sha}","languages_url":"https://api.github.com/repos/strinking/futaba/languages","stargazers_url":"https://api.github.com/repos/strinking/futaba/stargazers","contributors_url":"https://api.github.com/repos/strinking/futaba/contributors","subscribers_url":"https://api.github.com/repos/strinking/futaba/subscribers","subscription_url":"https://api.github.com/repos/strinking/futaba/subscription","commits_url":"https://api.github.com/repos/strinking/futaba/commits{/sha}","git_commits_url":"https://api.github.com/repos/strinking/futaba/git/commits{/sha}","comments_url":"https://api.github.com/repos/strinking/futaba/comments{/number}","issue_comment_url":"https://api.github.com/repos/strinking/futaba/issues/comments{/number}","contents_url":"https://api.github.com/repos/strinking/futaba/contents/{+path}","compare_url":"https://api.github.com/repos/strinking/futaba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strinking/futaba/merges","archive_url":"https://api.github.com/repos/strinking/futaba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strinking/futaba/downloads","issues_url":"https://api.github.com/repos/strinking/futaba/issues{/number}","pulls_url":"https://api.github.com/repos/strinking/futaba/pulls{/number}","milestones_url":"https://api.github.com/repos/strinking/futaba/milestones{/number}","notifications_url":"https://api.github.com/repos/strinking/futaba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strinking/futaba/labels{/name}","releases_url":"https://api.github.com/repos/strinking/futaba/releases{/id}","deployments_url":"https://api.github.com/repos/strinking/futaba/deployments","created_at":"2017-12-23T20:44:33Z","updated_at":"2018-10-30T03:09:50Z","pushed_at":"2018-10-30T15:19:52Z","git_url":"git://github.com/strinking/futaba.git","ssh_url":"git@github.com:strinking/futaba.git","clone_url":"https://github.com/strinking/futaba.git","svn_url":"https://github.com/strinking/futaba","homepage":"","size":1483,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":38,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":38,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strinking/futaba/pulls/183"},"html":{"href":"https://github.com/strinking/futaba/pull/183"},"issue":{"href":"https://api.github.com/repos/strinking/futaba/issues/183"},"comments":{"href":"https://api.github.com/repos/strinking/futaba/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/strinking/futaba/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/strinking/futaba/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strinking/futaba/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/strinking/futaba/statuses/b22fc0bc7650eb82ccb208d426da50eae4e6e310"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ammongit"}}