Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.07 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.07 KB

Friendly-Reddit-Bot

As a Reddit user, I felt that creating some bots for some trivial jobs might be interesting. So, I started learning how to do that. Just made a simple bot to do a wholesome job using the PRAW library.

Input your friends handle and the bot will reply to your friend's last 50 comments with a Youtube link to Rick Astley's Never Gonna Give You Up song. Let your friend know that you are always there for him.

How to run it

  1. Install praw.
pip install praw
  1. Modify praw.ini file as mentioned in this blog and save it in the same folder as the python codes.

  2. Then just run this command from terminal.

python3 botname.py

And it will take a handle as input. Enter your friend's Reddit handle name and it will start it's job.

Source

I would not be able to build these bots without reading this blog written by Shantnu. Thanks to him.