Coder Social home page Coder Social logo

seabre / chugalugdigest Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 208 KB

Bot for posting Chugalug digests to /r/chugalug, but it can be configured to post mailman digests to any subreddit.

License: MIT License

Ruby 97.35% JavaScript 1.69% CoffeeScript 0.52% CSS 0.43%

chugalugdigest's Introduction

chugalugdigest

Build Status

About

This came about because members of Chugalug that also subscribed to the subreddit wanted daily digests sent to the subreddit.

##Configuration

Environment Variables

The app is looking for the following environment variables

Environment Variable Description
REDDIT_USERNAME A string containing the reddit username of the bot you want to use.
REDDIT_PASSWORD A string containing the password for the reddit username of the bot you want to use.
REDDIT_SUBREDDIT A string containing the subreddit where you want to post to.
LISTDIGEST_WHITELIST A string of comma separated e-mail addresses that are allowed to send to the app.
IP_WHITELIST A string of comma separated IP addresses that are allowed to POST e-mail data to the app.
SECRET_TOKEN A string of random letters and numbers. Minimum of 30 characters. Used for verifying the integrity of signed cookies.

You can either use config/application.yml to store your environment variables for development or a .env.development The test environment currently uses .env.test. I am probably moving to using strictly dotenv for working with environment variables, so for now, whichever method you decide to use is up to you.

Inbound API

For the app to just work, the app was designed to work with Postmark's Inbound JSON API. You can either use their service or slightly modify the app to use whatever you want.

If you want to work with mailman, you will need to signup for the mailing list with the special e-mail address Postmark gave you for inbound e-mailing. You can do this without having the application setup, but ensure that your app isn't posting these e-mails anywhere. Also, in your mailman config for your account, make sure you disallow mailman from e-mailing your mailing list account password once a month. If you don't that's bad.

Also, you will want keep your e-mail hidden from the membership list. Configure your account to not show your inbound mailing address. I have taken measures to guard against if your inbound e-mail address gets exposed, but it's still a very good idea to keep it hidden.

Contributing

Pull requests are accepted. If you're adding features, please have tests if possible.

License

The application is under the MIT License.

chugalugdigest's People

Contributors

seabre avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.