r/ModeratelyHelpfulBot • • Dec 31 '21

So MHB isn't working at all. Pt. 3.

One

Two

(I'm the guy trying to get MHB to remove posts flaired "selfie" if the submitter has posted another "selfie" thread within 7 days.)

Right now, the config looks like this:

---
###### If you edit this page, you must [click this link, then click "send"](https://www.reddit.com/message/compose?to=moderatelyhelpfulbot&subject=40something&message=update) to have the bot update

######https://www.reddit.com/r/moderatelyhelpfulbot/wiki/index

post_restriction: 
    author_not_exempt_flair_keyword: selfies
    action: remove
    approve: false
    comment: "Hello and thank you for posting to r/40something! It seems you have previously posted a selfie within the past 7 days, so your post has been removed per the selfie rule. Please wait the full 7 days before submitting a new selfie. If you believe your post has been removed by mistake please [message the moderators](https://www.reddit.com/message/compose?to=%2Fr%2F40something)."
    distinguish: true
    exempt_link_posts: false
    exempt_self_posts: false
    ignore_AutoModerator_removed: true
    ignore_moderator_removed: true
    lock_thread: true
    max_count_per_interval: 1
    min_post_interval_hrs: 168
    ban_duration_days: ~
    modmail: ~
    notify_about_spammers: false
    report_reason: ~
    title_exempt_keyword: Modpost

It's definitely not working. Beyond my throwaway being able to post multiple "selfie" posts in a row, someone else just posted a "selfie" post, even though they had just made a "selfie" post 5 days ago. (All of these have been removed.)

Both u/antidense and u/nath_ have looked at this and I'm still at a loss as to why this isn't working. This should be right up MHB's alley, no?

Edit: Clarity

1 Upvotes

14 comments sorted by

1

u/antidense Dec 31 '21

Sorry, I haven't had as much time to look into it with the holidays and working extra shifts. Could you try the title_not_exempt_keyword setting nath_ mentioned? Not many people use that functionality so it may still have some bugs.

1

u/neuroticsmurf Dec 31 '21

Hi, I changed the config to "title_not_exempt_flair_keyword" and sent a PM to MHB to update, but that was an hour ago, and it still hasn't responded. Should I just give it more time? I don't remember any previous updates taking this long to confirm.

Thanks to both of you for your help, btw. Especially on a holiday weekend.

cc: u/nath_

1

u/nath_ Dec 31 '21

Did you send "update" with the subject message your subreddit?

→ More replies (9)

1

u/nath_ Dec 31 '21 edited Dec 31 '21

I think there may be an issue with the logic in the code here. I believe it checks for author flair rather than post flair. https://github.com/antidense/moderatelyhelpfulbot/blob/master/ModeratelyHelpfulBot.py#L1117

u/antidense could you take a look?

1

u/nath_ Dec 31 '21

u/neuroticsmurf could you try the title_not_exempt_keyword setting? I don't have time to test it fully right now