LINE-Bot-101-Node

Code sample for creating LINE Bot by Messaging API

Prerequisites

Initial

  • Create a folder and put app.js in it
  • Replace xxxxx in app.js with your CHANNEL_ACCESS_TOKEN
  • Replace yyyyy in app.js with your USER_ID
  • Open command line tool then shell to folder you created
  • npm init
  • npm install express --save
  • npm install body-parser --save
  • npm install request --save

Start instance

  • Open command line tool then shell to folder you created
  • node app.js (for starting)
  • pkill -9 node (for stopping)

Features

  • Reply Message
  • Push Message

Screenshots