From 2e259c54049c66e2f572308832c6e368f7510cff Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 17 Jan 2025 23:35:11 +0900 Subject: [PATCH] . --- instance.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/instance.js b/instance.js index 9e389be..98f0702 100644 --- a/instance.js +++ b/instance.js @@ -10,18 +10,12 @@ class InstancePlugin extends BaseInstancePlugin { onControllerConnectionEvent(event) { if (event === "connect") { for (let [action, content] of this.messageQueue) { - this.sendChat(action, content); + this.instance.sendTo("controller", new InstanceActionEvent(this.instance.name, action, content)); } this.messageQueue = []; } } - sendChat(action, content) { - this.instance.sendTo("controller", - new InstanceActionEvent(this.instance.name, action, content) - ); - } - async onOutput(output) { if (output.type == "action") { this.messageQueue.push([output.action, output.message]);