From c6f9540c0b63793d14ab1580db9e7f03a3b9d2a2 Mon Sep 17 00:00:00 2001 From: Jan <26145882+imverum@users.noreply.github.com> Date: Sat, 16 Jan 2021 12:39:20 +0100 Subject: [PATCH] add readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..df8874c --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# Discord RSS Webhook +Simple script which periodically checks a RSS feed for updates and sends these to a Discord webhook. +I can't guarantee that this works with every RSS feed, since I only tested it with [nyaa.si](https://nyaa.si/?page=rss). + +## Setup +Type `npm install` to install dependencies. To configure the webhook and RSS URL, create a file called `.env`: + + FEED_URL=https://nyaa.si/?page=rss + WH_ID=123456789012345678 + WH_TOKEN=long_ass_string_of_characters + +Replace WH_ID with your webhook's ID and WH_TOKEN with the webhook's token. FEED_URL is the RSS feed's URL (obviously). + +Run with `node .` or use [pm2](https://github.com/Unitech/pm2) \ No newline at end of file