From d57bde9e22ca561b0c98debff8e01a06aa315e0e Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 12 Oct 2026 14:55:25 +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 9394f9f..a6e7b6c 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.name, action, content)); + await instance.sendTo('controller', new ChatEvent(instance, 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.name, output.action, output.message)); + await instance.sendTo('controller', new ChatEvent(instance, output.action, output.message)); } catch (err) { queue.push([output.action, output.message]); }