mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2026-11-11 15:14:52 +09:00
Update index.ts
This commit is contained in:
1 parent
bdff46bf91
commit
6ad2d7ac5e
1 file changed
+2
-2
@@ -17,12 +17,12 @@ export class ChatEvent {
|
||||
) {}
|
||||
|
||||
static async fromContext(context: InstancePluginContext) {
|
||||
return new InstancePlugin(context.instance, context.action, context.content);
|
||||
return new ChatEvent(context.instance, context.action, context.content);
|
||||
}
|
||||
}
|
||||
|
||||
export default async function (context: InstancePluginContext) {
|
||||
await InstancePlugin.fromContext(context);
|
||||
await ChatEvent.fromContext(context);
|
||||
}
|
||||
|
||||
declare module '@clusterio/lib' {
|
||||
|
||||
Reference in new issue
Block a user