Skip to content

mokejp/update-detector-linebot

Repository files navigation

update-detector-linebot

The LINE bot to notify web pages update. (for GAE)

screenshot

Usage

1. Add the app.yaml

application: yourapplicationname
version: 1
runtime: go
api_version: go1
handlers:
- url: /.*
  script: _go_app
env_variables:
  PATH_SUFFIX: '-your-path-suffix'  # It is for to keep the endpoints undiscovered by others.
  CHANNEL_SECRET: 'Your LINE channel secret'
  CHANNEL_TOKEN: 'Your LINE channel token'

2. Add the cron.yaml

cron:
- description: "check update"
  url: /cron-your-path-suffix   # '/cron' + $PATH_SUFFIX
  schedule: every 5 minutes

3. Deploy to GAE

$ goapp deploy

Endpoints

  • /callback -your-path-suffix ... for the LINE Mesanger API Webhook
  • /cron -your-path-suffix ... for checking updates

About

The LINE bot to notify web pages update. (for GAE)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages