Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 520 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 520 Bytes

dt_redirect

This small python script creates a webserver running on port 8080 that forwards users to the latest discussion thread on /r/neoliberal. The logic is rather simple -- the bot simply looks for the latest thread titled "Discussion Thread" posted by the user "jobautomator". Since these values are hardcoded, if there's any change to the DT, this script must also be updated.

In case no DT is found, users are redirected to the subreddit itself.

I've also included the associated NGINX configuration file.