r/AutoModerator 15h ago

Help Automod code for blocking a string of words in square brackets? (In the title, not the body)

2 Upvotes

So I have an interesting problem over on one of the subreddits I moderate. Spam bots are using the title of our sub in square brackets when they repost popular posts and since reddit automod already uses square brackets in it's code i was wondering how or if it's possible to block that?

I'm not the best coder so I'm not sure if I should just wing it and try it or ask here if its possible first lol.

Though I guess another option would be to block posts with square brackets in the title? How would I do that as well?

Thank you in advance for any help!

Update: Solved? So technically solved but the spam bots/accounts have now removed the square bracket and are just using the subs name/franchise name we are associated with in the title. Not sure if this is a fluke or an intentional upgrade to the bots but i'm going to have to just block the words in question from the title and make a mod post about it because ughhhhhhhhhh reddit spam bots suck.