Skip to content

Commit

Permalink
Report NAA feedback to metasmoke
Browse files Browse the repository at this point in the history
Might as well since we categorize them now
  • Loading branch information
csnardi committed Mar 6, 2016
1 parent ee00fbc commit 14aadd4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions chatcommunicate.py
Expand Up @@ -230,6 +230,18 @@ def handle_commands(content_lower, message_parts, ev_room, ev_room_name, ev_user
return "Post ignored; alerts about it will no longer be posted."
else:
return None
if second_part_lower.startswith("naa") and is_privileged(ev_room, ev_user_id, wrap2):
if post_site_id is None:
return "That message is not a report."

t_metasmoke = Thread(target=Metasmoke.send_feedback_for_post,
args=(post_url, second_part_lower, ev_user_name, ))
t_metasmoke.start()

if not quiet_action:
return "Recorded answer as an NAA in metasmoke."
else:
return None
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
second_part_lower == "del") and is_privileged(ev_room, ev_user_id, wrap2):
try:
Expand Down

0 comments on commit 14aadd4

Please sign in to comment.