|Python| Make your Line Bot on Heroku

Making Line bot is very simple.
There are 3 parts.
1. Apply Line Message API
2. Apply Google sheet API (This is not necessary. )
3. Deploy your service on Heroku

I design a robot. Every user can ask some information.
Those information were collected by everyone and wrote on online google sheet.

My Demo LineBot app


There are some Heroku usage:
// After install CIL tool…
heroku login
// If you need to see the log of backend
heroku logs
// If you want to run commands on Heroku
heroku run {some cmd you want to use in backend}
e.g.
heroku run ls
//If you want to do some regular job
https://devcenter.heroku.com/articles/scheduler

Notice:
You can NOT save file as running schedule job.
Heroku is IMMUTABLE.
You can not save file by your process.
 

References:
1. for Line:
https://github.com/yaoandy107/line-bot-tutorial
Line business
2. for Google:
如何透過python建立google表單-使用google-sheet-api
Google console
3. deploy on Heroku
https://github.com/yaoandy107/line-bot-tutorial

Comments are closed.

WordPress.com.

Up ↑