mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Split up codebase into the packages @clsterio/lib, @clusterio/master, @clusterio/slave, and @clusterio/ctl using lerna to manage them. This will allow deployment to use only the parts needed reducing install size, and better separate the code into shared library, master, slave and control.
26 lines
643 B
JavaScript
26 lines
643 B
JavaScript
"use strict";
|
|
let link = require("@clusterio/lib/link");
|
|
let plugin = require("@clusterio/lib/plugin");
|
|
|
|
module.exports = {
|
|
name: "global_chat",
|
|
title: "Global Chat",
|
|
description: "Forwards chat between instances.",
|
|
version: "2.0.0-alpha",
|
|
instanceEntrypoint: "instance",
|
|
controlEntrypoint: "control",
|
|
|
|
messages: {
|
|
chat: new link.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" },
|
|
},
|
|
}),
|
|
},
|
|
};
|