Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Development Guide

Param Thakkar edited this page May 21, 2019 · 1 revision

Please create a new issue before working on a PR

Setup

1. Clone the repo

  • git clone https://github.com/paramt/MemeAdviser.git
  • cd MemeAdviser

2. Install dependencies

pip install -r requirements.txt

3. Configure PRAW

  • Create a new app on Reddit
    • Follow this link
    • Click create new app
    • Choose personal use script
    • Add a name and description
    • Click create app and copy the ID and secret
  • Export the following environment variables:
client_id=[YOUR APP ID]
client_secret=[YOUR APP SECRET]
username=[YOUR REDDIT USERNAME]
password=[YOUR REDDIT PASSWORD]
user_agent=MemeAdviser Dev 1.0

4. Run tests

Run pytest -v to run the bot without replying to submissions on reddit.

Clone this wiki locally