From 6728c767823173b4f8367e594357479be9d89ca0 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 12 Oct 2026 14:45:07 +0900 Subject: [PATCH] Refactor Discord bot connection and message handling --- controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.ts b/controller.ts index 67fad9d..e7001d9 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.values()].find(i => i.instance_name === instanceName)?.id; + const id = [...controller.instances.values()].find(i => i.config.get('instance.name') === instanceName).id; const connection = await controller.instances.get(id); if (!connection) {