Polls for new subreddit posts using https://reddit.com/r/new/<subreddit>.json
and forwards it to a webhook (Currently supports Discord)
To run
-
grab the
build.zip
from the latest release and unzip it -
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
WEBHOOK_ROUTE_CONFIG_PATH
- absolute path of the config fileWEBHOOK_ROUTE_CONFIG_BASE64
- base64 representation of the config contents. Useful if you want to store the config file in secret env var
config.json
[
{
"webhook": "https://discord.com/webhook",
"subreddit": "saskatoon"
},
{
"webhook": "https://discord.com/webhook",
"subreddit": "saskatchewan"
}
]
Example message