MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / SendMsg

Function SendMsg

hqcsh.js:265–279  ·  view source on GitHub ↗

* =========================================================发送消息=============================================

(message)

Source from the content-addressed store, hash-verified

263 * =========================================================发送消息=============================================
264 */
265async function SendMsg(message) {
266 if (!message) return;
267 if (Notify > 0) {
268 if ($.isNode()) {
269 var notify = require("./sendNotify");
270 //let text = '仅完成积分签到\n@auth:Mist\n@date:2024-05-29\n注: 本脚本仅用于个人学习和交流请勿用于非法用途。用户应当遵守所有适用的法律和规定。在任何情况下,脚本的开发者或贡献者均不对任何直接或间接使用本脚本而产生的结果负责。'
271 await notify.sendNotify($.name, message);
272 } else {
273 // $.msg(message);
274 $.msg($.name, '', message)
275 }
276 } else {
277 console.log(message);
278 }
279}
280
281/**
282 * =====================================================双平台log输出==========================================

Callers 1

hqcsh.jsFile · 0.70

Calls 3

isNodeMethod · 0.45
msgMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected