This commit is contained in:
2025-01-17 23:54:58 +09:00
parent 3a063822fa
commit 7bedcf3d39

View File

@@ -19,10 +19,14 @@ class InstancePlugin extends BaseInstancePlugin {
async onOutput(output) { async onOutput(output) {
if (output.type == "action") { if (output.type == "action") {
if (this.host.connector.connected) {
this.sendChat(output.action, output.message);
} else {
this.messageQueue.push([output.action, output.message]); this.messageQueue.push([output.action, output.message]);
} }
} }
} }
}
module.exports = { module.exports = {
InstancePlugin InstancePlugin