powderblock / DealWithItReddit

Reddit bot. Computer vision for facial detection and transformation. Python, PRAW, & OpenCV.
http://www.reddit.com/user/DealWithItbot/
MIT License
33 stars 3 forks source link

Add abstraction layer to the reddit code to allow debug mode #44

Open porglezomp opened 9 years ago

porglezomp commented 9 years ago

We need to add an abstraction layer so that a debug mode can provide fake reddit posts instead of submitting real ones.

This layer can also handle more rate limiting stuff so that the main code doesn't have to. (For example, a function like wait_for_ratelimit() that sleeps as appropriate.)