🔨V2P notify

This commit is contained in:
Leon 2021-06-27 18:10:49 +08:00 committed by GitHub
parent 5b0be590c6
commit cce7d1aea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,13 +45,13 @@ or
} }
``` ```
# notify.js # notify.js
``` ``` js
if (typeof $title$ !== "undefined") { if (typeof $title$ !== "undefined") {
botNotify($title$, $body$, $url$) botNotify($title$, $body$, $url$)
} }
``` ```
or or
``` ``` js
if (typeof $title$ !== "undefined") { if (typeof $title$ !== "undefined") {
botNotify1($title$, $body$, $url$) botNotify1($title$, $body$, $url$)
botNotify2($title$, $body$, $url$) botNotify2($title$, $body$, $url$)
@ -59,7 +59,7 @@ if (typeof $title$ !== "undefined") {
``` ```
and and
``` ``` js
function botNotify(title, body, url) { function botNotify(title, body, url) {
if (body=== "undefined"){body=""} if (body=== "undefined"){body=""}
if (url==="undefined"){url=""} if (url==="undefined"){url=""}