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 crowd control #138

Open FoxxMD opened 1 year ago

FoxxMD commented 1 year ago

https://www.reddit.com/dev/api/#POST_api_update_crowd_control_level

Implement updating crowd control on a submission as an Action

Justusewhatevernameisstillavailable commented 1 year ago

Looking forward to it!

Question, this does not include the toggle “Hold Crowd Controlled comments for review” right?

FoxxMD commented 1 year ago

It might...this endpoint contains these editable settings:

But, as usual, there is no description of what they actually do. I'll have to test it in my sandbox subreddit to see what they affect.

EDIT: oh you mean for individual posts. It might be hidden in the api request. I'll have to check PRAW docs.

Justusewhatevernameisstillavailable commented 1 year ago

Yep, I meant for an individual post, sorry for not specifying that.

crowd_control_chat_level an integer between 0 and 3 crowd_control_level an integer between 0 and 3 crowd_control_post_level an integer between 0 and 3

these three probably match chat post, comment and post set to off, lenient, moderate or strict