We wanted to try building something different from our usual projects and reddit is a website that we frequent.

What it does

People on r/Jokes are always complaining that all the jokes are not original and are just copies of previously posted material. This bot checks the newly submitted jokes for keywords and then uses them to search through the previously posted content. It then checks for matching phrases before commenting and linking the original joke if it determines the joke is old.

How we built it

We used the jraw java library to give our program the capabilities of a logged-in user on the site.

Challenges we ran into

Our new account had restrictions on posting frequency. This is meant to prevent shill accounts from creating lots of spam, but also slowed down or ability to test it.

Accomplishments that we're proud of

It was really cool to see how good a job our bot could do of identifying keywords from big bodies of text.

What we learned

String manipulation is not something we have worked on before, but I think we now have a much better understanding of it.

What's next for Reddit Jokes Repost Police Bot

We're not entirely sure. We'll have to wait and see how it is received by the community. It is definitely possible to extend to other subreddits.

Built With

Share this project: