Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.14 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.14 KB

🍔 🍔 Funbunn 🍔 🍔

Polls for new subreddit posts using https://reddit.com/r/new/<subreddit>.json and forwards it to a webhook (Currently supports Discord)

To run

  1. grab the build.zip from the latest release and unzip it

  2. Quickest way to get started is to run

     WEBHOOK_ROUTE_CONFIG_PATH="<absolute path to config>.json" ./bin/poll
    

Running with Docker

You can use the Docker container here

docker run -v ${PWD}/config.json:/app/config.json \
         -e WEBHOOK_ROUTE_CONFIG_PATH=/app/config.json \
        daven/funbunn

Environment variables

  • WEBHOOK_ROUTE_CONFIG_PATH - absolute path of the config file
  • WEBHOOK_ROUTE_CONFIG_BASE64 - base64 representation of the config contents. Useful if you want to store the config file in secret env var

Config example

config.json

[
  {
    "webhook": "https://discord.com/webhook",
    "subreddit": "saskatoon"
  },
  {
    "webhook": "https://discord.com/webhook",
    "subreddit": "saskatchewan"
  }
]

Example message

demo