r/ModSupport • u/Stressed_C • 15d ago
Mod Answered Does anyone have the automod code that makes the pop-ups when someone enters certain keywords?
Does anyone have the code for automod that with make it reply to comments that have certain keywords in like the "! word"? I've been trying with this code:
---
# Auto-reply to comments or posts with certain keywords
type: any
body (includes-word): ["!Spambot", "!spambot"]
comment: What we want the message to be.
---
But it keeps throwing this error, "Unsupported Media Type: YAML parsing error in section 2: expected '<document start>', but found '<sc" every time I press enter. Any insight or how to fix it?
Edit:
AHHHHHHH! I GOT IT! I used old reddit and the config didn't like the paragraph spacing! I'll figure out spacing later to make the config like it but I got it!
3
u/brightblackheaven 💡Top 25% Helper 💡 15d ago
You need the "|" part before the comment text. Is all of your spacing correct as well?
This is what we use to summon resources on common scams in our niche:
1
u/PolylingualAnilingus 15d ago
There's a code ready on r/automoderator to use. It looks right to me on my app, could be that you need to add a line after the comment part
0
u/teanailpolish 💡Top 25% Helper 💡 15d ago
they comma space after the 2nd keyword
["!Spambot", "!spambot", ]