FoxxMD / context-mod

an event-based, reddit moderation bot built on top of snoowrap and written in typescript
https://contextmod.dev
MIT License
49 stars 11 forks source link

Implement arbitrary comment/submission posting #93

Closed FoxxMD closed 2 years ago

FoxxMD commented 2 years ago

Currently CM can only comment directly on the activity being processed.

It should be able to comment or make a submission to an arbitrary parent activity or subreddit. This would allow moderators another way to keep an "audit trail" of activities actioned. Some scenarios this could be used for:

More than a few mods would like to have modmail-like notification abilities for CM but since that won't be available in the API anytime soon (or ever) this could be an alternative since it would still be reddit-based.

This could also have useful for non-moderators (usage) as CM could post to special sticked submissions based on subreddit-wide activity...

CuriousLyz commented 2 years ago

I would love this feature to be added to CM. PLEASE :)

If it's possible to add a token to CM and to extract a bit of information from the authors profile - it would be amazing. And to add it to the post it does makes:

I feel like I'm asking to much.

FoxxMD commented 2 years ago

{{author}} {{links.they.post}} or {{authors.links}} - Spam Links / Onlyfans Links if they have any on the last comments posts.

These can be taken care of using existing template placeholders like {{item.author}} and {{item.permalink}}. For links can use regex rule template {{rules.regexRuleName.matchSample}}

{{reason.of.ban}} or {{rule.they.break}} - To keep a track of rule they broke. {{action.taken}} - Banned / temporary banned.

These would need to be hardcoded into the submission content for now. But should be easy since you'll know which rules were triggered when this submission action is taken (can just look at config).

Otherwise this is an additional feature that is long overdue...adding action results to templates. That along with #22 and #87 would make this a bit more automated. I'll make a new issue for getting this stuff implemented.