Fully automatic LINE commercial robot

About this project

  • Webhook Event Objects
MessageEvent(訊息)
type
mode
timestamp
source:Source
reply_token
message:Message
FollowEvent(加入, 解除封鎖)
type
mode
timestamp
source:Source
reply_token
UnfollowEvent(封鎖)
type
mode
timestamp
source:Source
  • types of messages:
    • text (used)
    • sticker (used)
    • image (used)
    • video
    • audio
    • location (used)
    • imagemap (<3)
    • template (<3)
    • flex (excellent)

Detail

- app.py : main program
- line_bot_api.py : related modules

How to use

  1. use Dockerfile build env image
docker build -t rakunabe .
  1. create project file
mkdir app.py
  1. use line-bot-sdk supply code to build basic flask server
  1. run your project in the container
docker run --name rakunabe -p 5002:5002 --restart=always -v /root/Fully-automatic-LINE-commercial-robot:/app -d rakunabe
  1. check container normal executed or not
docker container ps | grep rakunabe
docker logs rakunabe