r/AutoModerator • u/ihopethisaccountstay • Apr 23 '26
Help Is it possible to make Automod echo a comment?
I was wondering if I could add a removal reason by echoing a comment. Basically, you comment something like !echo content and then AutoMod comments content on the post. I know I can just make a command like !rr1to comment the first removal reason by putting the text in there. BUT, I don't want to do that. I want to echo custom comments via AutoMod. Is it possible to do that? So far, I've come up with some code like this:
---
moderators_exempt: false
author: "ihopethisaccountstay"
type: comment
body (regex): '^!echo\s+(.+)'
comment: |
{{match-body-2}}
comment_stickied: true
action: remove
---
The problem with this is that it replies to my comment instead of commenting under the parent post. I did try putting comment under parent_submission does but it does not accept it and throws an error instead. I know that one workaround is to report the post and use that report to process the post again and make a comment BUT how do you pass the data from the comment to the next rule? Is this even possible to do in AutoMod or should I use Devvit to make bots that can do this reliably?
1
u/Chosen1PR š»Developer Apr 23 '26
Is the goal here just to leave a comment with a bot account instead of your own account? If so, there are already Devvit apps that can do this, including one I developed.
Mine is Reason without Removal, which lets you comment (or DM/modmail) a removal reason without having to remove the post. You can also edit the comment before posting, which would satisfy the āecho custom commentsā requirement. I have a removal reason set up which is simply "*", so I just have to delete a single character before writing a completely custom comment.
Besides my app, thereās also Voice of mods and Press App.
1
u/WhySoManyDownVote Apr 23 '26
It's just
Not {{match-body-2}}
But the I don't think the automod can remove its own comment. You could have it mod mail you the body.