This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
So I've got a bot script that runs beautifully as is, when triggered it replies with a specific statement based on the trigger.
What I'd like it to do is instead of replying to the comment that triggers it, reply to the top level post (parent?) and remove the comment that triggered it.
For example, right now the bot does this:
{some troll} starts a thread breaking a rule of the subreddit.
{me} !trigger brokenrule
{bot} The rule for (brokenrule) states blah de blah. As such, this thread is now locked.
And then the bot locks the thread (and optionally removes it)
What I'd like to end up with is:
{some troll} starts a thread breaking a rule of the subreddit.
{bot} The rule for (brokenrule) states blah de blah. As such, this thread is now locked.
With my triggering comment removed, of course.
Can that be done? Thanks!
(Special thanks to /u/ummmbacon from /r/redditdev)
Subreddit
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnpython...