Skip to content

miner46er/python-line-bot-sparta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-line-bot-sparta

this bot is using line-bot-sdk-python from https://github.com/line/line-bot-sdk-python

Getting started local env

$ export CHANNEL_SECRET=YOUR_LINE_CHANNEL_SECRET
$ export CHANNEL_ACCESS_TOKEN=YOUR_LINE_CHANNEL_ACCESS_TOKEN

$ pip install -r requirements.txt

Run the bot

$ python app.py

Getting started with Heroku

Heroku button

Deploy

then set Line bot Webhook URL: https://{YOUR_APP}.herokuapp.com/callback

define CHANNEL_SECRET and CHANNEL_ACCESS_TOKEN in config vars

deploy by yourself

heroku create
heroku info # then set Line bot Webhook URL to: https://{YOUR_APP}.herokuapp.com/callback
heroku config:set CHANNEL_SECRET="..."
heroku config:set CHANNEL_ACCESS_TOKEN="..."
git push heroku master
heroku logs

About

Line bot written in python for SPARTA assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages