mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2026-11-17 15:43:12 +09:00
.
This commit is contained in:
1 parent
7ab271fb8b
commit
182bccb652
10 files changed
+274
-2
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
const lib = require("@clusterio/lib");
|
||||
const { BaseInstancePlugin } = require("@clusterio/host");
|
||||
|
||||
class InstancePlugin extends BaseInstancePlugin {
|
||||
async init() {
|
||||
this.messageQueue = [];
|
||||
}
|
||||
|
||||
async onOutput(output) {
|
||||
if (output.type == "action") {
|
||||
this.messageQueue.push([output.action, output.message]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
InstancePlugin
|
||||
};
|
||||
Reference in new issue
Block a user