From ec5ba4d9d0537b5b8f76e421cc78fc0c239a2980 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 12 Oct 2026 15:29:26 +0900 Subject: [PATCH] Update instance.ts --- instance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instance.ts b/instance.ts index a6e7b6c..fe3e106 100644 --- a/instance.ts +++ b/instance.ts @@ -16,7 +16,7 @@ export default async function(context: InstancePluginContext) { for (const [action, content] of pending) { try { - await instance.sendTo('controller', new ChatEvent(instance, action, content)); + await instance.sendTo('controller', new ChatEvent(instance.id, instance.name, action, content)); } catch (err) { failed.push([action, content]); } @@ -32,7 +32,7 @@ export default async function(context: InstancePluginContext) { if (host.connector.connected) { try { - await instance.sendTo('controller', new ChatEvent(instance, output.action, output.message)); + await instance.sendTo('controller', new ChatEvent(instance.id, instance.name, output.action, output.message)); } catch (err) { queue.push([output.action, output.message]); }