{"action":"created","issue":{"url":"https://api.github.com/repos/TheRealGD/therealgd/issues/21","repository_url":"https://api.github.com/repos/TheRealGD/therealgd","labels_url":"https://api.github.com/repos/TheRealGD/therealgd/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/TheRealGD/therealgd/issues/21/comments","events_url":"https://api.github.com/repos/TheRealGD/therealgd/issues/21/events","html_url":"https://github.com/TheRealGD/therealgd/issues/21","id":308125822,"number":21,"title":"Nautbot - Transparent User Moderation/Bans","user":{"login":"nautbot","id":31225253,"avatar_url":"https://avatars1.githubusercontent.com/u/31225253?v=4","gravatar_id":"","url":"https://api.github.com/users/nautbot","html_url":"https://github.com/nautbot","followers_url":"https://api.github.com/users/nautbot/followers","following_url":"https://api.github.com/users/nautbot/following{/other_user}","gists_url":"https://api.github.com/users/nautbot/gists{/gist_id}","starred_url":"https://api.github.com/users/nautbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nautbot/subscriptions","organizations_url":"https://api.github.com/users/nautbot/orgs","repos_url":"https://api.github.com/users/nautbot/repos","events_url":"https://api.github.com/users/nautbot/events{/privacy}","received_events_url":"https://api.github.com/users/nautbot/received_events","type":"User","site_admin":false},"labels":[{"id":876853762,"url":"https://api.github.com/repos/TheRealGD/therealgd/labels/BIG","name":"BIG","color":"1b0170","default":false},{"id":876862680,"url":"https://api.github.com/repos/TheRealGD/therealgd/labels/TODO","name":"TODO","color":"f6c6ff","default":false},{"id":876672476,"url":"https://api.github.com/repos/TheRealGD/therealgd/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/TheRealGD/therealgd/milestones/3","html_url":"https://github.com/TheRealGD/therealgd/milestone/3","labels_url":"https://api.github.com/repos/TheRealGD/therealgd/milestones/3/labels","id":3211295,"number":3,"title":"v.3 - Convenience & UI","description":"","creator":{"login":"psineur","id":507338,"avatar_url":"https://avatars0.githubusercontent.com/u/507338?v=4","gravatar_id":"","url":"https://api.github.com/users/psineur","html_url":"https://github.com/psineur","followers_url":"https://api.github.com/users/psineur/followers","following_url":"https://api.github.com/users/psineur/following{/other_user}","gists_url":"https://api.github.com/users/psineur/gists{/gist_id}","starred_url":"https://api.github.com/users/psineur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psineur/subscriptions","organizations_url":"https://api.github.com/users/psineur/orgs","repos_url":"https://api.github.com/users/psineur/repos","events_url":"https://api.github.com/users/psineur/events{/privacy}","received_events_url":"https://api.github.com/users/psineur/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2018-03-23T05:35:30Z","updated_at":"2018-03-23T22:01:35Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-03-23T17:54:23Z","updated_at":"2018-03-24T14:25:46Z","closed_at":null,"author_association":"NONE","body":"On the Reddit/PRAW side, this was pretty simple:\r\n\r\n- Nautbot continuously scanned new comments looking for trigger phrases, e.g. \"nautbot ban\", \"nautbot ban # reason\", \"bye felicia\", etc.\r\n\r\n- Moderator could reply to a comment with trigger phrase, which Nautbot would pick up;\r\n\r\n- Nautbot would then ban the user, and then reply to the mod with a public message that X user was banned.\r\n\r\nThis functionality made moderation actions against users public, both in-line and through Nautbot's comment history."},"comment":{"url":"https://api.github.com/repos/TheRealGD/therealgd/issues/comments/375893161","html_url":"https://github.com/TheRealGD/therealgd/issues/21#issuecomment-375893161","issue_url":"https://api.github.com/repos/TheRealGD/therealgd/issues/21","id":375893161,"user":{"login":"nationwide13","id":22083142,"avatar_url":"https://avatars3.githubusercontent.com/u/22083142?v=4","gravatar_id":"","url":"https://api.github.com/users/nationwide13","html_url":"https://github.com/nationwide13","followers_url":"https://api.github.com/users/nationwide13/followers","following_url":"https://api.github.com/users/nationwide13/following{/other_user}","gists_url":"https://api.github.com/users/nationwide13/gists{/gist_id}","starred_url":"https://api.github.com/users/nationwide13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nationwide13/subscriptions","organizations_url":"https://api.github.com/users/nationwide13/orgs","repos_url":"https://api.github.com/users/nationwide13/repos","events_url":"https://api.github.com/users/nationwide13/events{/privacy}","received_events_url":"https://api.github.com/users/nationwide13/received_events","type":"User","site_admin":false},"created_at":"2018-03-24T14:25:46Z","updated_at":"2018-03-24T14:25:46Z","author_association":"NONE","body":"This doesn't seem to difficult. \r\n\r\nOn the comment submit controller we check to see if the comment matches a set regex, and if it dies and the user is an admin, we create a second comment and perform the ban. "}}
{"actor":{"display_login":"nationwide13"}}