thesecretmaster / ips-comment-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't duplicate post manually reported comments

Rainbacon opened this issue · comments

When a user manually reports a comment, it gets reposted in every chat room that the bot is in, including the room it was reported from. It can be a little confusing seeing the same comment posted twice, so I propose that the bot not repost manually reported comments in the room they were reported from.

Should be pretty straightforward. Could do it by passing around the room_id not to post to with the report flag, but I think the easiest way will be locking report capability down to the hq room only (which I probably should've done from the beginning). Then it'll just be an extra condition in the report_comment logic in Scanner when posting to hq.

Would also be helpful to add some kind of "Comment reported successfully" message to hq after the report logic has run (this'll be in the Replier).

I'll toss this into the open pull once I'm back in a few weeks.

Completed as of #43