refactor: Remove console.log statements and error alerts in lua.ts
This commit is contained in:
@@ -434,8 +434,6 @@ export async function runLua(code:string, arg:{
|
|||||||
stopSending = true
|
stopSending = true
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
alertError('Lua Error: ' + error)
|
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -592,7 +590,6 @@ export async function runLuaEditTrigger<T extends any>(char:character|groupChat|
|
|||||||
mode: mode,
|
mode: mode,
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
console.log(runResult)
|
|
||||||
data = runResult.res ?? data
|
data = runResult.res ?? data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -600,7 +597,6 @@ export async function runLuaEditTrigger<T extends any>(char:character|groupChat|
|
|||||||
|
|
||||||
return data
|
return data
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
|
||||||
return content
|
return content
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user