Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.75 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.75 KB

LINE Bot 101

日本語ドキュメント

What we use

NOTION!

DO NOT INCLUDE 'line' in the name of provider and channel. If you do so, you cannnot create the provider nor the channel.

Installation

$ git clone https://github.com/hidehiro98/line-bot-101.git
$ cd line-bot-101
$ git remote add heroku https://git.heroku.com/YOUR-APP-NAME-ON-HEROKU.git

macOS
If you don't have brew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then
$ brew install heroku/brew/heroku

Ubuntu
$ sudo snap install --classic heroku

$ git push heroku master

Please ignore these lines
$ brew install heroku/brew/heroku
$ heroku create $YOUR_APP_NAME

$ heroku config:set LINE_CHANNEL_SECRET=$YOUR_LINE_CHANNEL_SECRET
$ heroku config:set LINE_ACCESS_TOKEN=$YOUR_LINE_ACCESS_TOKEN
Example
$ heroku config:set LINE_CHANNEL_SECRET=f73d5df3fagu3g301856e1dc4cfcf3e1
$ heroku config:set LINE_ACCESS_TOKEN=FbKBF7cB1HReh9lIc6M3bDz8Rd6D+0f1kvBaJF93QadC7SsGpHP9K1EOOYkbwRThXHdVSSupJ4TgKMEtE/LbnE2heif2GZci+ntGdP89cGfrbLiofFFBlrFygi58f/B5UsvqkvlfNM7BHddRZhhV2RgdB04t89/1O/w1cDnyilFU=

Only for image recognition
$ heroku config:set IBM_IAM_API_KEY=$YOUR_IAM_API_KEY

$ git push heroku master

Slides

https://www.slideshare.net/HidehiroNagaoka/le-wagon-tokyo-line-bot-101

Docs

Docs of LINE Messagin API

Docs of Sinatra

Docs of IBM Watson