package
1.5.1
Repository: https://github.com/appleboy/drone-line.git
Documentation: pkg.go.dev

# README

Start Line Bot

There are two ways to start line bot webhook service.

Start webhook service

Start with Golang

Download dependency packages.

$ go get -t -v ./...
$ export CHANNEL_SECRET=xxxxx
$ export CHANNEL_TOKEN=xxxxx
$ export PORT=8089
$ go run server.go

Start with Docker

Build your own docker image.

$ docker build -t appleboy/drone-line-webhook -f example/Dockerfile .

or download image from docker hub.

$ docker pull appleboy/drone-line-webhook

then start service on host port 8089.

$ docker run --rm \
  -e CHANNEL_SECRET=xxxx \
  -e CHANNEL_TOKEN=xxxx \
  -p 8089:8089 \
  appleboy/drone-line-webhook

Use ngrok

Use ngrok to tunnel your locally runnning bot so that Line can reach the webhook.

$ ngrok http 8089