The LINE server which handles users' messages from LINE client based on Python flask
-
Run it in the developing mode
python3 run.py
-
Run it in the production mode
gunicorn app:app -c ./gunicorn.conf.py
All linebot's event handler is implemented in app/linebot
. There are four programs to handle the different events.
-
callback.py
:Handle all post requests come from/callback
. -
followEvent.py
:Handle the event that new user add NTHU LINE Chatbot. -
messageEvent.py
:The chatbot core program. Process the message sends by user and will reply proper message to the user. -
postbackEvent.py
:Handle the postback event.
Please refer to Dockerfile and gke folder
Developed by Jenson Su & Jonathan Wu