{"action":"created","comment":{"url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/comments/64135597","id":64135597,"diff_hunk":"@@ -269,12 +305,17 @@ def handle_commands(content_lower, message_parts, ev_room, ev_room_name, ev_user\n             t_metasmoke.start()\n \n             add_ignored_post(post_site_id[0:2])\n-            if not quiet_action:\n-                return \"Recorded answer as an NAA in metasmoke.\"\n-            else:\n+            if quiet_action:\n                 return None\n-        if (second_part_lower.startswith(\"delete\") or second_part_lower.startswith(\"remove\") or second_part_lower.startswith(\"gone\") or second_part_lower.startswith(\"poof\") or\n-                second_part_lower == \"del\") and is_privileged(ev_room, ev_user_id, wrap2):\n+\n+            return \"Recorded answer as an NAA in metasmoke.\"\n+\n+        if (second_part_lower.startswith(\"delete\") \\\n+            or second_part_lower.startswith(\"remove\") \\\n+            or second_part_lower.startswith(\"gone\") \\\n+            or second_part_lower.startswith(\"poof\") \\\n+            or second_part_lower == \"del\") \\\n+        and is_privileged(ev_room, ev_user_id, wrap2):","path":"chatcommunicate.py","position":null,"original_position":197,"commit_id":"e33cf1425fbce687be3a47b1e753c505b0e92133","original_commit_id":"109a83190cc246775107cadc8fa2bdf6d08638e1","user":{"login":"ArtOfCode-","id":10406565,"avatar_url":"https://avatars.githubusercontent.com/u/10406565?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtOfCode-","html_url":"https://github.com/ArtOfCode-","followers_url":"https://api.github.com/users/ArtOfCode-/followers","following_url":"https://api.github.com/users/ArtOfCode-/following{/other_user}","gists_url":"https://api.github.com/users/ArtOfCode-/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtOfCode-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtOfCode-/subscriptions","organizations_url":"https://api.github.com/users/ArtOfCode-/orgs","repos_url":"https://api.github.com/users/ArtOfCode-/repos","events_url":"https://api.github.com/users/ArtOfCode-/events{/privacy}","received_events_url":"https://api.github.com/users/ArtOfCode-/received_events","type":"User","site_admin":false},"body":"More weird indentation - I'm not sure what it *should* be, but having some conditionals on the same indent and one four spaces less feels weird.","created_at":"2016-05-21T14:52:11Z","updated_at":"2016-05-21T14:52:11Z","html_url":"https://github.com/Charcoal-SE/SmokeDetector/pull/159#discussion_r64135597","pull_request_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/comments/64135597"},"html":{"href":"https://github.com/Charcoal-SE/SmokeDetector/pull/159#discussion_r64135597"},"pull_request":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/159","id":70946392,"html_url":"https://github.com/Charcoal-SE/SmokeDetector/pull/159","diff_url":"https://github.com/Charcoal-SE/SmokeDetector/pull/159.diff","patch_url":"https://github.com/Charcoal-SE/SmokeDetector/pull/159.patch","issue_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/issues/159","number":159,"state":"open","locked":false,"title":"General cleanup & added anime.se to the list of non-latin potential sites","user":{"login":"The-Quill","id":12711960,"avatar_url":"https://avatars.githubusercontent.com/u/12711960?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Quill","html_url":"https://github.com/The-Quill","followers_url":"https://api.github.com/users/The-Quill/followers","following_url":"https://api.github.com/users/The-Quill/following{/other_user}","gists_url":"https://api.github.com/users/The-Quill/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Quill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Quill/subscriptions","organizations_url":"https://api.github.com/users/The-Quill/orgs","repos_url":"https://api.github.com/users/The-Quill/repos","events_url":"https://api.github.com/users/The-Quill/events{/privacy}","received_events_url":"https://api.github.com/users/The-Quill/received_events","type":"User","site_admin":false},"body":"I did some general variable name cleanup, syntax cleanup etc\r\n\r\nThe code was tested with the test modules and by running in chat....\r\n\r\nOn a side note, I added anime.se to the list of non-latin acceptable sites because they get Japanese lyric or quote questions sometimes","created_at":"2016-05-21T10:49:17Z","updated_at":"2016-05-21T14:52:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73f2f85dc98ab4de3f64b52c29892888f4ad4c11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/159/commits","review_comments_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/159/comments","review_comment_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/issues/159/comments","statuses_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/statuses/e33cf1425fbce687be3a47b1e753c505b0e92133","head":{"label":"The-Quill:master","ref":"master","sha":"e33cf1425fbce687be3a47b1e753c505b0e92133","user":{"login":"The-Quill","id":12711960,"avatar_url":"https://avatars.githubusercontent.com/u/12711960?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Quill","html_url":"https://github.com/The-Quill","followers_url":"https://api.github.com/users/The-Quill/followers","following_url":"https://api.github.com/users/The-Quill/following{/other_user}","gists_url":"https://api.github.com/users/The-Quill/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Quill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Quill/subscriptions","organizations_url":"https://api.github.com/users/The-Quill/orgs","repos_url":"https://api.github.com/users/The-Quill/repos","events_url":"https://api.github.com/users/The-Quill/events{/privacy}","received_events_url":"https://api.github.com/users/The-Quill/received_events","type":"User","site_admin":false},"repo":{"id":59246563,"name":"SmokeDetector","full_name":"The-Quill/SmokeDetector","owner":{"login":"The-Quill","id":12711960,"avatar_url":"https://avatars.githubusercontent.com/u/12711960?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Quill","html_url":"https://github.com/The-Quill","followers_url":"https://api.github.com/users/The-Quill/followers","following_url":"https://api.github.com/users/The-Quill/following{/other_user}","gists_url":"https://api.github.com/users/The-Quill/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Quill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Quill/subscriptions","organizations_url":"https://api.github.com/users/The-Quill/orgs","repos_url":"https://api.github.com/users/The-Quill/repos","events_url":"https://api.github.com/users/The-Quill/events{/privacy}","received_events_url":"https://api.github.com/users/The-Quill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/The-Quill/SmokeDetector","description":"Headless chatbot that detects spam and posts links to it to chatrooms for quick deletion.","fork":true,"url":"https://api.github.com/repos/The-Quill/SmokeDetector","forks_url":"https://api.github.com/repos/The-Quill/SmokeDetector/forks","keys_url":"https://api.github.com/repos/The-Quill/SmokeDetector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/The-Quill/SmokeDetector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/The-Quill/SmokeDetector/teams","hooks_url":"https://api.github.com/repos/The-Quill/SmokeDetector/hooks","issue_events_url":"https://api.github.com/repos/The-Quill/SmokeDetector/issues/events{/number}","events_url":"https://api.github.com/repos/The-Quill/SmokeDetector/events","assignees_url":"https://api.github.com/repos/The-Quill/SmokeDetector/assignees{/user}","branches_url":"https://api.github.com/repos/The-Quill/SmokeDetector/branches{/branch}","tags_url":"https://api.github.com/repos/The-Quill/SmokeDetector/tags","blobs_url":"https://api.github.com/repos/The-Quill/SmokeDetector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/The-Quill/SmokeDetector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/The-Quill/SmokeDetector/git/refs{/sha}","trees_url":"https://api.github.com/repos/The-Quill/SmokeDetector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/The-Quill/SmokeDetector/statuses/{sha}","languages_url":"https://api.github.com/repos/The-Quill/SmokeDetector/languages","stargazers_url":"https://api.github.com/repos/The-Quill/SmokeDetector/stargazers","contributors_url":"https://api.github.com/repos/The-Quill/SmokeDetector/contributors","subscribers_url":"https://api.github.com/repos/The-Quill/SmokeDetector/subscribers","subscription_url":"https://api.github.com/repos/The-Quill/SmokeDetector/subscription","commits_url":"https://api.github.com/repos/The-Quill/SmokeDetector/commits{/sha}","git_commits_url":"https://api.github.com/repos/The-Quill/SmokeDetector/git/commits{/sha}","comments_url":"https://api.github.com/repos/The-Quill/SmokeDetector/comments{/number}","issue_comment_url":"https://api.github.com/repos/The-Quill/SmokeDetector/issues/comments{/number}","contents_url":"https://api.github.com/repos/The-Quill/SmokeDetector/contents/{+path}","compare_url":"https://api.github.com/repos/The-Quill/SmokeDetector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/The-Quill/SmokeDetector/merges","archive_url":"https://api.github.com/repos/The-Quill/SmokeDetector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/The-Quill/SmokeDetector/downloads","issues_url":"https://api.github.com/repos/The-Quill/SmokeDetector/issues{/number}","pulls_url":"https://api.github.com/repos/The-Quill/SmokeDetector/pulls{/number}","milestones_url":"https://api.github.com/repos/The-Quill/SmokeDetector/milestones{/number}","notifications_url":"https://api.github.com/repos/The-Quill/SmokeDetector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/The-Quill/SmokeDetector/labels{/name}","releases_url":"https://api.github.com/repos/The-Quill/SmokeDetector/releases{/id}","deployments_url":"https://api.github.com/repos/The-Quill/SmokeDetector/deployments","created_at":"2016-05-19T22:16:18Z","updated_at":"2016-05-20T12:15:11Z","pushed_at":"2016-05-21T13:45:43Z","git_url":"git://github.com/The-Quill/SmokeDetector.git","ssh_url":"git@github.com:The-Quill/SmokeDetector.git","clone_url":"https://github.com/The-Quill/SmokeDetector.git","svn_url":"https://github.com/The-Quill/SmokeDetector","homepage":"https://metasmoke.erwaysoftware.com","size":11779,"stargazers_count":1,"watchers_count":1,"language":"Python","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":1,"default_branch":"master"}},"base":{"label":"Charcoal-SE:master","ref":"master","sha":"617ce4be02739e04b784ea39461d9e8e52d55be4","user":{"login":"Charcoal-SE","id":6485770,"avatar_url":"https://avatars.githubusercontent.com/u/6485770?v=3","gravatar_id":"","url":"https://api.github.com/users/Charcoal-SE","html_url":"https://github.com/Charcoal-SE","followers_url":"https://api.github.com/users/Charcoal-SE/followers","following_url":"https://api.github.com/users/Charcoal-SE/following{/other_user}","gists_url":"https://api.github.com/users/Charcoal-SE/gists{/gist_id}","starred_url":"https://api.github.com/users/Charcoal-SE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charcoal-SE/subscriptions","organizations_url":"https://api.github.com/users/Charcoal-SE/orgs","repos_url":"https://api.github.com/users/Charcoal-SE/repos","events_url":"https://api.github.com/users/Charcoal-SE/events{/privacy}","received_events_url":"https://api.github.com/users/Charcoal-SE/received_events","type":"Organization","site_admin":false},"repo":{"id":16389919,"name":"SmokeDetector","full_name":"Charcoal-SE/SmokeDetector","owner":{"login":"Charcoal-SE","id":6485770,"avatar_url":"https://avatars.githubusercontent.com/u/6485770?v=3","gravatar_id":"","url":"https://api.github.com/users/Charcoal-SE","html_url":"https://github.com/Charcoal-SE","followers_url":"https://api.github.com/users/Charcoal-SE/followers","following_url":"https://api.github.com/users/Charcoal-SE/following{/other_user}","gists_url":"https://api.github.com/users/Charcoal-SE/gists{/gist_id}","starred_url":"https://api.github.com/users/Charcoal-SE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charcoal-SE/subscriptions","organizations_url":"https://api.github.com/users/Charcoal-SE/orgs","repos_url":"https://api.github.com/users/Charcoal-SE/repos","events_url":"https://api.github.com/users/Charcoal-SE/events{/privacy}","received_events_url":"https://api.github.com/users/Charcoal-SE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Charcoal-SE/SmokeDetector","description":"Headless chatbot that detects spam and posts links to it to chatrooms for quick deletion.","fork":false,"url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector","forks_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/forks","keys_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/teams","hooks_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/hooks","issue_events_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/issues/events{/number}","events_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/events","assignees_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/assignees{/user}","branches_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/branches{/branch}","tags_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/tags","blobs_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/git/refs{/sha}","trees_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/statuses/{sha}","languages_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/languages","stargazers_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/stargazers","contributors_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/contributors","subscribers_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/subscribers","subscription_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/subscription","commits_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/commits{/sha}","git_commits_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/git/commits{/sha}","comments_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/comments{/number}","issue_comment_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/issues/comments{/number}","contents_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/contents/{+path}","compare_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/merges","archive_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/downloads","issues_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/issues{/number}","pulls_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls{/number}","milestones_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/milestones{/number}","notifications_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/labels{/name}","releases_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/releases{/id}","deployments_url":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/deployments","created_at":"2014-01-30T20:29:37Z","updated_at":"2016-05-21T14:33:33Z","pushed_at":"2016-05-21T13:45:44Z","git_url":"git://github.com/Charcoal-SE/SmokeDetector.git","ssh_url":"git@github.com:Charcoal-SE/SmokeDetector.git","clone_url":"https://github.com/Charcoal-SE/SmokeDetector.git","svn_url":"https://github.com/Charcoal-SE/SmokeDetector","homepage":"https://metasmoke.erwaysoftware.com","size":11677,"stargazers_count":62,"watchers_count":62,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":3,"forks":37,"open_issues":3,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/159"},"html":{"href":"https://github.com/Charcoal-SE/SmokeDetector/pull/159"},"issue":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/issues/159"},"comments":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/Charcoal-SE/SmokeDetector/statuses/e33cf1425fbce687be3a47b1e753c505b0e92133"}}}}
{"actor":{"display_login":"ArtOfCode-"}}