mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2026-11-20 23:53:13 +09:00
Update instance.ts
This commit is contained in:
1 parent
aaf1b34072
commit
d57bde9e22
1 file changed
+2
-2
+2
-2
@@ -16,7 +16,7 @@ export default async function(context: InstancePluginContext) {
|
|||||||
|
|
||||||
for (const [action, content] of pending) {
|
for (const [action, content] of pending) {
|
||||||
try {
|
try {
|
||||||
await instance.sendTo('controller', new ChatEvent(instance.name, action, content));
|
await instance.sendTo('controller', new ChatEvent(instance, action, content));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
failed.push([action, content]);
|
failed.push([action, content]);
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ export default async function(context: InstancePluginContext) {
|
|||||||
|
|
||||||
if (host.connector.connected) {
|
if (host.connector.connected) {
|
||||||
try {
|
try {
|
||||||
await instance.sendTo('controller', new ChatEvent(instance.name, output.action, output.message));
|
await instance.sendTo('controller', new ChatEvent(instance, output.action, output.message));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
queue.push([output.action, output.message]);
|
queue.push([output.action, output.message]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user