mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
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.
24 lines
577 B
JavaScript
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" },
|
|
},
|
|
}),
|
|
},
|
|
};
|