Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 974 Bytes

File metadata and controls

34 lines (22 loc) · 974 Bytes

Weaher Line Bot

Line Message API using line-bot-sdk-python.

Setup

Register

Go to Line Business Center.

HTTPS Server

I use Heroku as a server . Get an account and create a project.

Then open terminal $ heroku login $ heroku git:clone -a "your heroku project name" $ cd "your heroku project name"

Then put all these file into the directory.

Then, after putting all these file into the directory. $ git add . $ git commit -am "make it better" $ git push heroku master

Set Webhook URL

Set webhook url on your LINE Developers page to https://"your domain name"/echobot/callback/

Remember

Set these three variables. 1. SECRET_KEY 2. LINE_CHANNEL_ACCESS_TOKEN 3. LINE_CHANNEL_SECRET

You can do it by: 1. Set in your Heroku project's setting page. 2. Set in weather_bot/settings_secret.py.