mirror of
https://github.com/kha7iq/pingme.git
synced 2025-05-16 06:40:12 -07:00
docs: add documentation for line messanger
This commit is contained in:
parent
3cfd2b25be
commit
29e664a8b5
@ -54,6 +54,7 @@ platforms.
|
|||||||
|
|
||||||
- *Discord*
|
- *Discord*
|
||||||
- *Email*
|
- *Email*
|
||||||
|
- *Line*
|
||||||
- *Mastodon*
|
- *Mastodon*
|
||||||
- *Mattermost*
|
- *Mattermost*
|
||||||
- *Microsoft Teams*
|
- *Microsoft Teams*
|
||||||
@ -164,7 +165,9 @@ COMMANDS:
|
|||||||
mattermost Send message to mattermost
|
mattermost Send message to mattermost
|
||||||
pushbullet Send message to pushbullet
|
pushbullet Send message to pushbullet
|
||||||
twillio Send sms via twillio
|
twillio Send sms via twillio
|
||||||
|
zulip Send message to zulip
|
||||||
mastodon Set status message for mastodon
|
mastodon Set status message for mastodon
|
||||||
|
line Send message to line messenger
|
||||||
help, h Shows a list of commands or help for one command
|
help, h Shows a list of commands or help for one command
|
||||||
|
|
||||||
GLOBAL OPTIONS:
|
GLOBAL OPTIONS:
|
||||||
|
@ -512,7 +512,7 @@ jobs:
|
|||||||
|
|
||||||
## Zulip
|
## Zulip
|
||||||
|
|
||||||
Mastodon uses application token to authorize and set status.
|
Zulip uses bot email and token for authentication, and sends messages to particular topic.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pingme zulip
|
pingme zulip
|
||||||
@ -564,6 +564,53 @@ jobs:
|
|||||||
| ZULIP_TOPIC | "" |
|
| ZULIP_TOPIC | "" |
|
||||||
| ZULIP_MESSAGE | "" |
|
| ZULIP_MESSAGE | "" |
|
||||||
|
|
||||||
|
## Line
|
||||||
|
|
||||||
|
Line uses chanel secret and token for authentication, and sends messages.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pingme line
|
||||||
|
--secret 'secretxxx' \
|
||||||
|
--token '12345567' \
|
||||||
|
--receivers 'ab1234545xx' \
|
||||||
|
--msg 'content of message'
|
||||||
|
```
|
||||||
|
|
||||||
|
- GitHub Action
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pingme-job:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: PingMe
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Ping me On
|
||||||
|
uses: kha7iq/pingme-action@v1
|
||||||
|
env:
|
||||||
|
LINE_SECRET: ${{ secrets.LINE_SECRET }}
|
||||||
|
LINE_TOKEN: ${{ secrets.LINE_TOKEN }}
|
||||||
|
LINE_RECEIVER_IDS: 'ab1235xxx8'
|
||||||
|
LINE_MSG_TITLE: 'Reference: ${{ github.ref }}'
|
||||||
|
LINE_MESSAGE: 'Event is triggered by ${{ github.event_name }}'
|
||||||
|
|
||||||
|
with:
|
||||||
|
service: line
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Variables**
|
||||||
|
|
||||||
|
| Variables | Default Value |
|
||||||
|
| -------------------------- | :----------------: |
|
||||||
|
| LINE_SECRET | "" |
|
||||||
|
| LINE_TOKEN | "" |
|
||||||
|
| LINE_RECEIVER_IDS | "" |
|
||||||
|
| LINE_MSG_TITLE | "" |
|
||||||
|
| LINE_MESSAGE | "" |
|
||||||
|
|
||||||
## Email
|
## Email
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user