MCPcopy Create free account
hub / github.com/anyehttp/quantumult-x / SendMsg

Function SendMsg

task/oly.js:258–269  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

256}
257// 发送消息
258async function SendMsg(message) {
259 if (!message) return;
260 if (Notify > 0) {
261 if ($.isNode()) {
262 await notify.sendNotify($.name, message)
263 } else {
264 $.msg($.name, '', message)
265 }
266 } else {
267 console.log(message)
268 }
269}
270
271/** ---------------------------------固定不动区域----------------------------------------- */
272// prettier-ignore

Callers 1

oly.jsFile · 0.70

Calls 3

isNodeMethod · 0.45
msgMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected