r/AutoModerator • u/shnoop123 • Nov 15 '21
Solved Command to lock a thread in AutoMod?
Is it possible to create a rule in AutoModerator that works like: when a user types "!lock" and the user is either the OP or a Moderator than the thread locks and posts a sticked comment by AutoMod that says something like "This thread is now locked"?
I've been having some trouble figuring it out as I am not a programmer. Any help is greatly appreciated!
4
Upvotes
4
u/001Guy001 (not a mod/helper anymore) Nov 15 '21 edited Nov 15 '21
The comment by automod is not possible unfortunately (though you can have it change the post flair if relevant)
Edit: forgot the parent_submission
2
u/shnoop123 Nov 15 '21
For those curious this is the code I had to go with. I had to make modifications to make it effect the submission. I generally don't like my automod code to be public but this may help others in the future as well as I marked this as "solved" so I figured I'd give the solution:
1
u/Thewolf1970 Nov 15 '21
It seems harder to type that in than to just select the lock button. Can you explain your use case more?