From e688acc2739bf30e0da537846c1d43cd7f5c1ad2 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 12 Oct 2026 14:41:06 +0900 Subject: [PATCH] Update controller.ts --- controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.ts b/controller.ts index a5e5706..32e1485 100644 --- a/controller.ts +++ b/controller.ts @@ -130,7 +130,7 @@ export default async function(context: ControllerPluginContext) { ? text.slice(0, -verb.length).trim() : text; - const id = controller.instances.get(instanceName); + const id = [...controller.instances.values()].find(i => i.name === instanceName)?.id; const connection = await controller.instances.get(id); if (!connection) {