smacademic / project-bdf

project-bdf created by GitHub Classroom
2 stars 0 forks source link

Change method bot uses to recognize posts #40

Closed afig closed 5 years ago

afig commented 5 years ago

Previously, the bot would scan all of the recent comments in a subreddit to find a specific keyword. However, this process was not easily scalable, either in computational resources needed, nor in the API access that we had.

Instead, the bot now uses a feature built into Reddit where Reddit will send you an inbox message if someone mentions your username. Previously, this was a paid feature but is now available to all Reddit uses, including our TextifyReddit account.

This PR also added a whitelist and blacklist of subreddits rather than only having a whitelist.

Closes #33