From 154f3f6deef6033e809ae408cdb057b012004cda Mon Sep 17 00:00:00 2001 From: chen Date: Tue, 22 Oct 2024 12:54:27 +0800 Subject: [PATCH] U push_impl.*.sh: improve comment --- push_impl.pushplus.sh | 4 ++-- push_impl.serverchan.sh | 4 +++- push_impl.telegram.sh | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/push_impl.pushplus.sh b/push_impl.pushplus.sh index d3c7211..0476b0f 100644 --- a/push_impl.pushplus.sh +++ b/push_impl.pushplus.sh @@ -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" diff --git a/push_impl.serverchan.sh b/push_impl.serverchan.sh index bdf27ed..757ba00 100644 --- a/push_impl.serverchan.sh +++ b/push_impl.serverchan.sh @@ -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(){ @@ -13,3 +14,4 @@ do_push_serverchan(){ echo # echo "==`date -Is`: $tit: $msg" >&2 } + diff --git a/push_impl.telegram.sh b/push_impl.telegram.sh index d18dca6..bc099a8 100644 --- a/push_impl.telegram.sh +++ b/push_impl.telegram.sh @@ -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"