Skip to content

💫 Line chatbot template for user to quickly setup.

Notifications You must be signed in to change notification settings

runkids/line-chatbot-template

Repository files navigation

Setup

  1. Run npm install or yarn to install packages

  2. Set webhook path in bottender.config.js

      module.exports = {
        channels: {
          line: {
            enabled: true,
            path: 'xxxxxxx',
            accessToken: process.env.LINE_ACCESS_TOKEN,
            channelSecret: process.env.LINE_CHANNEL_SECRET,
          },
        },
      };
  3. Set Access Token & Channel Secret in .env file

      LINE_ACCESS_TOKEN='xxxxx'
      LINE_CHANNEL_SECRET='xxxxx'
  4. Run npm run dev or yarn dev to start server, also automatically run up a Ngrok client, you can copy webhook url to LINE@ account's settings page

    line webhook url: https://xxxxx.ngrok.io/webhooks/line
    

Note

  • 請到 https://manager.line.biz/ 確保有開啟「回應設定」的 回應模式為「聊天機器人」,以及啟用 webhook

About

💫 Line chatbot template for user to quickly setup.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages