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