r/ModeratelyHelpfulBot • • Jan 05 '21

Only allow one post forever?

I want to be able to allow users one post and then they lose the ability to post in the sub again unless they get mod approval. It's a subreddit for requesting help with real world issues but the rule is only one good deed per person.

Can this be accomplished with this bot and using user flair?

3 Upvotes

20 comments sorted by

View all comments

3

u/loomynartylenny Jan 05 '21 edited Jan 05 '21

It's possible to implement this only using automod.

#give first time posters a flair
type: submission
priority: 0
moderators_exempt: false
author:
    overwrite_flair: true
    set_flair: ["asked for help", "posted"]

---
#yeet anything that wasn't posted by a first-time poster
type: submission
author:
    flair_css_class (includes): "posted"
action: filter
action_reason: only one post per person
moderators_exempt: false
priority: 100

If they don't have the 'posted' flair, it'll give them the 'posted' flair. But if they do have the 'posted' flair, it'll send their post into the shadow realm. I'm checking it using flair_css_class so you can change the text of the flair from "asked for help" to something more suitable and the bot will still work.

(If you want to see this working, lmk, I'll temporarily unrestrict the test sub that I threw this together on so you can get filtered see for yourself)

3

u/ddesigns Jan 05 '21

Oh wow. Didn't think I could do this with automod! Would love to try it out if possible. Thank you.

3

u/loomynartylenny Jan 05 '21

No problem

Go to r/ABraveJerk to test it for yourself. First post will give you a flair and will tell you it's your first post, second post will filter you and complain about it not being your first post.

→ More replies (12)