GitHub

This repository contains the files that accompany my tutorial for writing a Reddit bot!

These brief instructions should get you up and running. Refer to my tutorial for a complete walkthrough 😊

Remember to follow Reddit's bottiquette at all times!

Setup

  • pip install praw
  • Create your Reddit script app, and get your client id and client secret:


  • Set the following environment variables:
$env:CLIENTID='id-here'
$env:CLIENTSECRET='secret-here'
$env:CLIENTUSER='reddit-user-name'
$env:CLIENTPASS='reddit-password'
  • Pass in comma delimited search phrases, or a single string:
    • python bot.py --search 'phrase one, two, and three' --reply 'found you!'

Contributing

You're very welcome to expand the bot or raise any issues.


License: MIT

Read the original on github.com ↗