Files
factorio-clusterio/plugins/global_chat/info.js
T
Hornwitser 24397b75cc Prefix clusterio/lib imports with lib
Use lib* prefix for the modules impored from the lib package to help
distinguish them more from ordinary variables.  Fix up the naming
convention for files to be consistently lowercase_underscore for
JavaScript files.
2020-10-23 21:22:43 +02:00

24 lines
577 B
JavaScript

"use strict";
let libLink = require("@clusterio/lib/link");
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-slave", "slave-master", "master-slave", "slave-instance", "control-master"],
forwardTo: "master",
broadcastTo: "instance",
eventProperties: {
"instance_name": { type: "string" },
"content": { type: "string" },
},
}),
},
};