尝试构建一个机器人来监听要标记的自己的名字

Trying to build a bot that listens for it's own name to be tagged

我一直在玩 reddit API,我真的很想制作一个机器人来侦听有人在评论中标记它,然后回复评论。

我一直在查看文档 here 但没有找到我要找的东西。

我以前见过其他机器人这样做,所以我觉得这一定是可能的。

如果有人能指出正确的方向,我将不胜感激。

干杯。

如果您使用 PRAW(Python Reddit API Wrapper),那么您可以使用 redditor.inbox class 来跟踪 "mentions"。 http://praw.readthedocs.io/en/latest/code_overview/reddit/inbox.html?highlight=Mentions

否则,AFAIK 提及只是您收件箱中的另一项。

https://reddit.com/r/redditscripting