Skip to content

johnsliao/ama_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit AMA Bot

This script is powering u/ama_compiler_bot.

What does this bot do?

This bot makes it easier for redditors to read through the question and answers from /r/AMA.

When will the bot post to a thread?

  • Comment score must be > 0
  • Comment must end with a "?"
  • Submission is older than 24 hours
  • Submission is younger than 7 days
  • Submission score must be greater than 10
  • Submission is not a [REQUEST]
  • Have not posted on the thread before (stored in a sqlite database)
  • Comment total length is not longer than 9500 characters

Setting up your own ama bot

  1. Clone this repo
  2. Get reddit API keys.
  3. Set the following environment variables:
    REDDIT_CLIENT_ID
    REDDIT_SECRET
    REDDIT_PASSWORD
    REDDIT_USER_AGENT
    REDDIT_USERNAME
    
  4. Install dependencies
    virtualenv -p python3 venv
    source venv/bin/activate
    pip install -r requirements.txt
    
  5. Set up sqlite database
    python db.py
    
  6. Run the script
    python app.py
    

Releases

No releases published

Packages

No packages published

Languages