Skip to content

mikejhan4455/linebot-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • Simplify the deployment to a Line Bot service
  • Building a Line Bot without writing codes
  • Config the reaction with query in Key - Value mapping

The application is tested under docker image ubuntu:18.04 Might be able to run under other operating systems with docker

Usage

Create a application of Line Bot and a webhook server to handle the line message webhook event. Combine these as a line bot service.

  • container handler : The packed linebot handeler server
  • container ngrok-server : Webhook server with SSL using Ngrok

Build

###Requirement:

  • Docker

    • MacOS

      brew install Docker
    • Ubuntu

      apt-get install Docker
      
  • Docker-composer

    See Install composer.

How to:

  1. Clone this repository:

    git clone https://github.com/mikejhan4455/linebot-simple

  2. Go inside the folder cd/dir linebot-simple

  3. Config

    • /env-file/linebot.env

      Paste the Channel access token & Channel serect of your line channel.

      You can find it at line develop console

      CHANNEL_ACCESS_TOKEN=<YOUR_LINEDEV_CHANNEL_ACCESS_TOKEN>
      CHANNEL_SERECT=<YOUR_LINEDEV_CHANNEL_SERECT>
    • /env-file/ngrok.env

      Paste the Channel access token of your Ngrok account.

      Your can find it at Ngrok auth

      NGROK_PORT=3001
      NGROK_AUTH=<YOUR_NGROK_TUNNEL_AUTHTOKEN>
      NGROK_REGION=ap
  4. Run the server with docker-compose

docker-compose up

About

simple linebot server using Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published