Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

ProjectWmega/line-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Bot

Have fun with LINE!

Installation

  • Create folder named ssl, then copy all certs into ssl

    • You can create free SSL certificate at SSL For Free if you don't have it yet
  • Make sure to replace infomations listed in config.js, including

    • SSL
      1. CA bundle
      2. Private key
      3. Certificate
    • LINE channel
      1. Channel ID
      2. Channel secret
      3. Channel access token
    • CWB
      1. CWB access token
    • Path
      1. Absolute path to the project
  • Run npm install

Starting

$ node .

Note

It's recommended to add the script into crontab to run automatically

Below is an example that run script every 15 mins

*/15 * * * * osk2 /usr/bin/node /var/www/bot/scripts/update-information.js

Data Source

Releases

No releases published

Packages

No packages published