x
This commit is contained in:
+36
-1
@@ -784,4 +784,39 @@ let utils = {
|
||||
},
|
||||
};
|
||||
|
||||
export { Adapter, Bucket, sender, sleep, utils };
|
||||
let slog = (type: string, ...args: any[]) => {
|
||||
|
||||
};
|
||||
|
||||
let console = {
|
||||
log(...args: any[]) {
|
||||
const content = args.reduce((acc, arg) => acc + ' ' + arg, '')
|
||||
client.Console(
|
||||
new srpc.ConsoleRequest({ type: "log", content, plugin_id }),
|
||||
(err, resp) => {}
|
||||
)
|
||||
},
|
||||
info(...args: any[]) {
|
||||
const content = args.reduce((acc, arg) => acc + ' ' + arg, '')
|
||||
client.Console(
|
||||
new srpc.ConsoleRequest({ type: "info", content, plugin_id }),
|
||||
(err, resp) => {}
|
||||
)
|
||||
},
|
||||
error(...args: any[]) {
|
||||
const content = args.reduce((acc, arg) => acc + ' ' + arg, '')
|
||||
client.Console(
|
||||
new srpc.ConsoleRequest({ type: "error", content, plugin_id }),
|
||||
(err, resp) => {}
|
||||
)
|
||||
},
|
||||
debug(...args: any[]) {
|
||||
const content = args.reduce((acc, arg) => acc + ' ' + arg, '')
|
||||
client.Console(
|
||||
new srpc.ConsoleRequest({ type: "debug", content, plugin_id }),
|
||||
(err, resp) => {}
|
||||
)
|
||||
},
|
||||
};
|
||||
|
||||
export { Adapter, Bucket, sender, sleep, utils, console };
|
||||
|
||||
Reference in New Issue
Block a user