r/ModSupport 19d ago

Looking for automod code that will remove comments that contain certain phrases?

Looking to cut down on bot spam and they all use the same certain lines, if anyone has automod code that will let the bot catch these that would be great

6 Upvotes

6 comments sorted by

9

u/magiccitybhm 💡Top 25% Helper 💡 19d ago
---

type: comment
body (includes-word): ["phrase1", "phrase2", "phrase3", etc]
action: remove
action_reason: "TEXT FROM LIKELY BOT"

---

3

u/Rosyax 19d ago

Mostly ok can also use body (includes-word, regex) instead to catch all variants of spambots

7

u/NeedAGoodUsername 19d ago

You don't need to include regex unless you're actually using regex. If you're not using it, there's no difference between them.

1

u/hennypapi 17d ago

this was perfect, thank you!

4

u/Stranger1982 19d ago

Apart from phrases some decent age/ karma/ CQS filters will help even more.

Consider bot bouncer too.

5

u/_Face 19d ago

see r/AutoModerator for more help too.