This commit is contained in:
1-6
2023-07-27 10:01:13 +08:00
parent 116d4b6359
commit 41c8fc7233
5 changed files with 44 additions and 26 deletions
+5 -6
View File
@@ -676,23 +676,22 @@ let utils = {
},
};
exports.utils = utils;
let slog = (type, ...args) => {
};
let slog = (type, ...args) => { };
let console = {
log(...args) {
const content = args.reduce((acc, arg) => acc + ' ' + arg, '');
const content = args.reduce((acc, arg) => acc + " " + arg, "");
client.Console(new srpc_1.srpc.ConsoleRequest({ type: "log", content, plugin_id }), (err, resp) => { });
},
info(...args) {
const content = args.reduce((acc, arg) => acc + ' ' + arg, '');
const content = args.reduce((acc, arg) => acc + " " + arg, "");
client.Console(new srpc_1.srpc.ConsoleRequest({ type: "info", content, plugin_id }), (err, resp) => { });
},
error(...args) {
const content = args.reduce((acc, arg) => acc + ' ' + arg, '');
const content = args.reduce((acc, arg) => acc + " " + arg, "");
client.Console(new srpc_1.srpc.ConsoleRequest({ type: "error", content, plugin_id }), (err, resp) => { });
},
debug(...args) {
const content = args.reduce((acc, arg) => acc + ' ' + arg, '');
const content = args.reduce((acc, arg) => acc + " " + arg, "");
client.Console(new srpc_1.srpc.ConsoleRequest({ type: "debug", content, plugin_id }), (err, resp) => { });
},
};