异步Execute
这个提交包含在:
25
Debug.js
25
Debug.js
@ -165,15 +165,22 @@ exports.add={
|
||||
command = command.replace("]","]");
|
||||
command = command.replace("&","&");
|
||||
var time = process.uptime();
|
||||
try{
|
||||
eval(command);
|
||||
}catch(error){
|
||||
Core.frame.SendMsg(connect,info,error);
|
||||
console.log(error);
|
||||
}
|
||||
var te2 = process.uptime() - time;
|
||||
Debug.SaveVar();
|
||||
Core.frame.SendMsg(connect,info,`指令执行完毕,共耗时${te2}秒`);
|
||||
|
||||
new Promise(()=>{
|
||||
try{
|
||||
eval(command);
|
||||
}catch(error){
|
||||
Core.frame.SendMsg(connect,info,error);
|
||||
console.log(error);
|
||||
}
|
||||
var te2 = process.uptime() - time;
|
||||
Debug.SaveVar();
|
||||
Core.frame.SendMsg(connect,info,`指令执行完毕,共耗时${te2}秒`);
|
||||
return void 0;
|
||||
}).catch((reason)=>{
|
||||
Core.frame.SendMsg(connect,info,reason);
|
||||
console.log(reason);
|
||||
})
|
||||
};
|
||||
|
||||
if(Temp1 == "说明书"||Temp1 == "用户手册"||Temp1 == "帮助"){
|
||||
|
||||
在新工单中引用
屏蔽一个用户