{"id":13413391,"url":"https://github.com/appleboy/drone-line","last_synced_at":"2025-06-15T07:03:58.489Z","repository":{"id":57496904,"uuid":"68076843","full_name":"appleboy/drone-line","owner":"appleboy","description":"Sending line notifications using a binary, docker or Drone CI.","archived":false,"fork":false,"pushed_at":"2023-02-25T01:10:05.000Z","size":2631,"stargazers_count":80,"open_issues_count":2,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-04T21:12:39.175Z","etag":null,"topics":["bot","docker","linebot","notifications"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appleboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-09-13T05:21:44.000Z","updated_at":"2024-04-18T10:50:35.000Z","dependencies_parsed_at":"2022-09-03T02:30:55.062Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/drone-line","commit_stats":{"total_commits":226,"total_committers":4,"mean_commits":56.5,"dds":"0.013274336283185861","last_synced_commit":"7ad766b4119c2e398e4ecca0fd45b2e97b2e3d3d"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/drone-line/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-line/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259190368,"owners_count":22819177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","docker","linebot","notifications"],"created_at":"2024-07-30T20:01:39.256Z","updated_at":"2025-06-15T07:03:58.470Z","avatar_url":"https://github.com/appleboy.png","language":"Go","readme":"# drone-line\n\n![drone-line](./images/line.png)\n\n[![GoDoc](https://godoc.org/github.com/appleboy/drone-line?status.svg)](https://godoc.org/github.com/appleboy/drone-line)\n[![Build Status](https://cloud.drone.io/api/badges/appleboy/drone-line/status.svg)](https://cloud.drone.io/appleboy/drone-line)\n[![codecov](https://codecov.io/gh/appleboy/drone-line/branch/master/graph/badge.svg)](https://codecov.io/gh/appleboy/drone-line)\n[![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/drone-line)](https://goreportcard.com/report/github.com/appleboy/drone-line)\n[![Docker Pulls](https://img.shields.io/docker/pulls/appleboy/drone-line.svg)](https://hub.docker.com/r/appleboy/drone-line/)\n[![microbadger](https://images.microbadger.com/badges/image/appleboy/drone-line.svg)](https://microbadger.com/images/appleboy/drone-line \"Get your own image badge on microbadger.com\")\n[![Release](https://github-release-version.herokuapp.com/github/appleboy/drone-line/release.svg?style=flat)](https://github.com/appleboy/drone-line/releases/latest)\n[![Build status](https://ci.appveyor.com/api/projects/status/pmkfbnwtlf1fm45l/branch/master?svg=true)](https://ci.appveyor.com/project/appleboy/drone-line/branch/master)\n\nSending line notifications using a binary, docker or [Drone CI](https://docs.drone.io/).\n\n## Register Line BOT API Trial\n\nPlease refer to [LINE Business Center](https://at.line.me/en/).\n\n## Feature\n\n* [x] Send multiple Message.\n* [x] Send Text Message.\n* [x] Send Video Message.\n* [x] Send Audio Message.\n* [x] Send Sticker Message.\n* [x] Send Location Message.\n* [x] Support [prometheus](https://prometheus.io) metrics API.\n* [x] Automatically install TLS certificates from [Let's Encrypt](https://letsencrypt.org/).\n* [x] Support [Localtunnel](https://localtunnel.github.io/www/) for webhook tunnel.\n* [x] Support [Line Notify](https://notify-bot.line.me/en/).\n\n\u003e Localtunnel allows you to easily share a web service on your local development machine without messing with DNS and firewall settings.\n\nMemory Usage:\n\n![Memory Usage](./screenshots/memory_usage.png)\n\nNotification Count Usage:\n\n![Notification Count Usage](./screenshots/notification.png)\n\n## Build or Download a binary\n\nThe pre-compiled binaries can be downloaded from [release page](https://github.com/appleboy/drone-line/releases). Support the following OS type.\n\n* Windows amd64/386\n* Linux amd64/386\n* Darwin amd64/386\n\nWith `Go` installed\n\n```sh\ngo get -u -v github.com/appleboy/drone-line\n```\n\nor build the binary with the following command:\n\n```sh\nmake build\n```\n\n## Docker\n\nBuild the docker image with the following commands:\n\n```sh\nmake docker\n```\n\n## Usage\n\nThere are three ways to send notification.\n\n* [usage from binary](#usage-from-binary)\n* [usage from docker](#usage-from-docker)\n* [usage from drone ci](#usage-from-drone-ci)\n\n## Usage from binary\n\n### Setup Webhook service\n\nSetup Webhook service as default port `8088`.\n\n```bash\ndrone-line \\\n  --secret xxxx \\\n  --token xxxx \\\n  webhook\n```\n\nChange default webhook port to `8089`.\n\n```bash\ndrone-line \\\n  --port 8089 \\\n  --secret xxxx \\\n  --token xxxx \\\n  webhook\n```\n\nUse [localtunnel](https://localtunnel.github.io/www/) to tunnel your locally running bot so that Line can reach the webhook.\n\n```bash\ndrone-line \\\n  -s secret \\\n  -t token \\\n  --tunnel \\\n  --port 2002 \\\n  webhook\n```\n\nUse [Let's Encrypt](https://letsencrypt.org/). Please make sure you have permission to listen on `443` port.\n\n```bash\ndrone-line \\\n  -s secret \\\n  -t token \\\n  -autotls \\\n  -host example.com \\\n  -cache /var/www/.cache \\\n  --port 443 \\\n  webhook\n```\n\n**Tips:** Another way to use [ngrok](https://ngrok.com/) to tunnel your locally running bot so that Line can reach the webhook.\n\n#### Send Notification\n\nSetup the `--to` flag after fetch user id from webhook service.\n\n```bash\ndrone-line \\\n  --secret xxxx \\\n  --token xxxx \\\n  --to xxxx \\\n  --message \"Test Message\"\n```\n\n#### Send LINE Notify\n\nIf you connect your service with LINE Notify, LINE users can easily receive notifications from it.\nSee the [documentation](https://notify-bot.line.me/en/).\n\n```sh\ndrone-line \\\n  --token xxxx \\\n  --message \"Test Message\" \\\n  notify\n```\n\n## Usage from docker\n\nSetup Webhook service as default port `8088`.\n\n```bash\ndocker run --rm \\\n  -e LINE_CHANNEL_SECRET=xxxxxxx \\\n  -e LINE_CHANNEL_TOKEN=xxxxxxx \\\n  appleboy/drone-line webhook\n```\n\nChange default webhook port to `8089`.\n\n```bash\ndocker run --rm \\\n  -e LINE_CHANNEL_SECRET=xxxxxxx \\\n  -e LINE_CHANNEL_TOKEN=xxxxxxx \\\n  -e LINE_PORT=8089 \\\n  appleboy/drone-line webhook\n```\n\n**Tips:** Use [ngrok](https://ngrok.com/) to tunnel your locally running bot so that Line can reach the webhook.\n\nSend Notification\n\n```bash\ndocker run --rm \\\n  -e LINE_CHANNEL_SECRET=xxxxxxx \\\n  -e LINE_CHANNEL_TOKEN=xxxxxxx \\\n  -e LINE_TO=xxxxxxx \\\n  -e LINE_MESSAGE=test \\\n  -e LINE_IMAGES=https://example.com/1.png \\\n  -e LINE_VIDEOS=https://example.com/1.mp4 \\\n  -e LINE_AUDIOS=https://example.com/1.mp3::1000 \\\n  -e LINE_STICKERS=1::1 \\\n  -e LINE_LOCATIONS=title::address::latitude::longitude \\\n  -e LINE_DELIMITER=:: \\\n  appleboy/drone-line\n```\n\n## Usage from drone ci\n\nExecute from the working directory:\n\n```bash\ndocker run --rm \\\n  -e PLUGIN_CHANNEL_SECRET=xxxxxxx \\\n  -e PLUGIN_CHANNEL_TOKEN=xxxxxxx \\\n  -e PLUGIN_TO=xxxxxxx \\\n  -e PLUGIN_MESSAGE=test \\\n  -e PLUGIN_IMAGES=https://example.com/1.png \\\n  -e PLUGIN_VIDEOS=https://example.com/1.mp4 \\\n  -e PLUGIN_AUDIOS=https://example.com/1.mp3::1000 \\\n  -e PLUGIN_STICKERS=1::1 \\\n  -e PLUGIN_LOCATIONS=title::address::latitude::longitude \\\n  -e PLUGIN_DELIMITER=:: \\\n  -e PLUGIN_ONLY_MATCH_EMAIL=false \\\n  -e DRONE_REPO_OWNER=appleboy \\\n  -e DRONE_REPO_NAME=go-hello \\\n  -e DRONE_COMMIT_SHA=e5e82b5eb3737205c25955dcc3dcacc839b7be52 \\\n  -e DRONE_COMMIT_BRANCH=master \\\n  -e DRONE_COMMIT_AUTHOR=appleboy \\\n  -e DRONE_COMMIT_AUTHOR_EMAIL=appleboy@gmail.com \\\n  -e DRONE_COMMIT_MESSAGE=Test_Your_Commit \\\n  -e DRONE_BUILD_NUMBER=1 \\\n  -e DRONE_BUILD_STATUS=success \\\n  -e DRONE_BUILD_LINK=http://github.com/appleboy/go-hello \\\n  -e DRONE_JOB_STARTED=1477550550 \\\n  -e DRONE_JOB_FINISHED=1477550750 \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  appleboy/drone-line\n```\n\nYou can get more [information](DOCS.md) about how to use scp plugin in drone.\n\n## Testing\n\nTest the package with the following command:\n\n```sh\nmake test\n```\n","funding_links":[],"categories":["Messaging","Relational Databases","消息","消息系统","\u003cspan id=\"消息-messaging\"\u003e消息 Messaging\u003c/span\u003e","消息传递","机器学习"],"sub_categories":["Search and Analytic Databases","Advanced Console UIs","检索及分析资料库","SQL 查询语句构建库","高級控制台界面","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","交流","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdrone-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fdrone-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdrone-line/lists"}