How does a bot on this website scan all comments continuously for keywords to find relevant comments to reply to?

2.34K views

How does a bot on this website scan all comments continuously for keywords to find relevant comments to reply to?

In:

Anonymous 0 Comments

Using reddit’s API. See this link: https://api.reddit.com/r/all/comments/

It contains the latest comments (which you can see when you go to https://www.reddit.com/r/all/comments/) in a format that is compact and easily parsable by a computer program. Each entry in this page contains the actual content of the comment and various metadata, including when the comment was posted, who posted it, the original link to the comment, the comment and post’s unique identifiers, and such. The bot can use the IDs to post a reply to the comment (again using the reddit API).