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.
- Install
praw
.
pip install praw
-
Modify
praw.ini
file as mentioned in this blog and save it in the same folder as the python codes. -
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.
I would not be able to build these bots without reading this blog written by Shantnu. Thanks to him.