From 7bedcf3d3957b4f7c89dd28889dab29ac764f4ec Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 17 Jan 2025 23:54:58 +0900 Subject: [PATCH] . --- instance.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/instance.js b/instance.js index 86b5bc4..dc1a1d1 100644 --- a/instance.js +++ b/instance.js @@ -19,7 +19,11 @@ class InstancePlugin extends BaseInstancePlugin { async onOutput(output) { if (output.type == "action") { - this.messageQueue.push([output.action, output.message]); + if (this.host.connector.connected) { + this.sendChat(output.action, output.message); + } else { + this.messageQueue.push([output.action, output.message]); + } } } }