This bot will track the subreddits r/nanotrade and r/nanocurrency and search for nano addresses or nano block hashes. It will then reply to the post or comment with the corresponding link to nanode. This is to help mobile users and people who just don't want to open up another tab to nanode to search an address or find a block. It will not comment if you include any block explorer link along with your address or block hash. It is also open source.
- Install python3 and praw.
- Install the package
moreutils
for your distro. - Copy
praw.example.ini
aspraw.ini
and edit the values. You get the OAuth values from Reddit Apps. - Create a file called
replied_posts.txt
. - Set the environment variable
ALLOW_POSTS
toTrue
to allow actually posting to reddit. - Excecute script
runs.sh
to monitor submissions orrunc.sh
for comments.