diff --git a/README.md b/README.md index 3c4c30a..6319890 100644 --- a/README.md +++ b/README.md @@ -276,6 +276,28 @@ function send_message_with_json { send_message 'title' 'description' 'content' ``` +另一个版本: +```shell +MESSAGE_PUSHER_SERVER="https://msgpusher.com" +MESSAGE_PUSHER_USERNAME="test" +MESSAGE_PUSHER_TOKEN="666" +MESSAGE_PUSHER_CHANNEL="lark" + +sendmsg() { + if [ -t 0 ]; then + local param="$*" + else + local param=$(