refactor: Remove console.log statements and error alerts in lua.ts

This commit is contained in:
kwaroran
2024-07-01 08:16:03 +09:00
parent e2a31df93f
commit dbdbeca49e

View File

@@ -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
} }
} }