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
moreutilsfor your distro. - Copy
praw.example.iniaspraw.iniand edit the values. You get the OAuth values from Reddit Apps. - Create a file called
replied_posts.txt. - Set the environment variable
ALLOW_POSTStoTrueto allow actually posting to reddit. - Excecute script
runs.shto monitor submissions orrunc.shfor comments.