suksit / udemy-notify

LINE Notify for Free Courses from http://www.onlinecoursesupdate.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Udemy Notify

A simple Node.js app that reads RSS feed from http://www.onlinecoursesupdate.com/ and sends notifications to users via LINE Notify API.

Installation

git clone https://github.com/suksit/udemy-notify.git
cd udemy-notify
npm install

Configuration

Create config.json from the template:

cp config.json.example config.json

Then put LINE Notify access token(s) in config.json. The name field is just a reminder and can be anything. For example,

{
  "tokens": [
    {
      "name": "me",
      "value": "ulzku7sSCbd09sP163Yc4Dk4tOAQKj9UMpNTqY1bzll"
    },
    {
      "name": "some group",
      "value": "ab7e19UMpNTqY1bz5l0POs163Yc4DAQk4tSCbd09sKj"
    }
  ],
  "lastUpdate": "0000-00-00T00:00:00.000Z"
}

Usage

One-time execution:

node index.js

Crontab with Docker:

docker build -t udemy-notify .
docker run -d --name udemy_notify udemy-notify

About

LINE Notify for Free Courses from http://www.onlinecoursesupdate.com/


Languages

Language:JavaScript 100.0%