Skip to content

Commit

Permalink
U push_impl.*.sh: improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yurenchen000 committed Oct 22, 2024
1 parent 54d86d4 commit 154f3f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions push_impl.pushplus.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

## --------- push via serverChan
## --------- push via pushplus

## need conf
# pushplush_token=${pushplush_token:-'set your pushplush_token at conf'}
# pushplush_topic=

## msg is markdown, new-line need ' \n' OR '\n\n'
## msg is html?
do_push_pushplus(){
local tit="$1"
local msg="$2"
Expand Down
4 changes: 3 additions & 1 deletion push_impl.serverchan.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

## --------- push via serverChan

serverchan_sendkey=${serverchan_sendkey:-'set your sendkey at conf'}
## need conf
# serverchan_sendkey=${serverchan_sendkey:-'set your sendkey at conf'}

## msg is markdown, new-line need ' \n' OR '\n\n'
do_push_serverchan(){
Expand All @@ -13,3 +14,4 @@ do_push_serverchan(){
echo
# echo "==`date -Is`: $tit: $msg" >&2
}

4 changes: 2 additions & 2 deletions push_impl.telegram.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

## --------- push via serverChan
## --------- push via telegram bot

## need conf
# TELEGRAM_BOT_TOKEN=
# TELEGRAM_CHAT_ID=


## msg is text //also support markdown,markdownv2,html
do_push_telegram(){
local tit="$1"
local msg="$2"
Expand Down

0 comments on commit 154f3f6

Please sign in to comment.