Files
factorio-clusterio/plugins/global_chat/info.js
T
Hornwitser 6fc3abafd5 Rename Slave to Host
The role of a slave as a host for Factorio servers is not well reflected
in its name and has caused confusion among users.  Rename slave to host
to better reflect its role as a host of Factorio servers.
2023-02-22 15:30:51 +01:00

24 lines
588 B
JavaScript

"use strict";
let { libLink } = require("@clusterio/lib");
module.exports = {
name: "global_chat",
title: "Global Chat",
description: "Forwards chat between instances.",
instanceEntrypoint: "instance",
controlEntrypoint: "control",
messages: {
chat: new libLink.Event({
type: "global_chat:chat",
links: ["instance-host", "host-controller", "controller-host", "host-instance", "control-controller"],
forwardTo: "controller",
broadcastTo: "instance",
eventProperties: {
"instance_name": { type: "string" },
"content": { type: "string" },
},
}),
},
};