Skip to content

healeycodes/Reddit-Bot-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Build a friendly bot to keep you company on Reddit! 🤖

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages