example

command
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 4 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL