Giter Club home page Giter Club logo

line-bot's Introduction

Line 聊天機器人簡單範例

可參考 Line 官方文件

申請開發帳號

Line developer account 去 Line Business Center

使用

git clone https://github.com/hsin421/line-bot.git

config.js 裡面的三個 credentials 換成自己的。如果你打算deploy到Heroku的話就把credentials用

heroku config:set CHANNEL_SECRET=XXXXXXXXXX

來設定

再來先裝必要的套件

npm install

裝好之後,就

npm start

可以啟動伺服器,但local server 沒什麼用要 deploy 然後建立webhook才行。建議使用 Heroku

內建的webhook位置是 https://YOUR-WEBHOOK-URL/callback 記得LINE需要webhook使用https

請參考以下教學,但教學裡使用LINE API舊版,新版文件以上面官方資料為主

教學

[教學] Line API

line-bot's People

Contributors

aszx87410 avatar hsin421 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

eit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.