Quotations and catch error

This commit is contained in:
Apher 2026-07-06 23:45:29 +00:00
parent 8ee656c067
commit 14f5a85bd8

View File

@ -86,15 +86,15 @@ async function main() {
}
});
py.stderr.on('data', (data) => {
console.error('[PY ERR]', data.toString());
py.stderr.on("data", (data) => {
console.error("[PY ERR]", data.toString());
});
py.on('close', (code) => {
console.log('Python exited with code', code);
py.on("close", (code) => {
console.log("Python exited with code", code);
});
processor('assistant', `${config.DEVICE_ID}`, "commands");
processor("assistant", `${config.DEVICE_ID}`, "commands").catch(console.error);
}
main().catch(console.error);