feat: handle contact actions

This commit is contained in:
Wesley F. Young 2024-10-13 17:19:18 +08:00
parent 7f764625fe
commit ac47b4903c

View File

@ -7,6 +7,7 @@ import { LaanaMessageActionImpl } from './action/message';
import { LaanaConfigLoader } from './config';
import { LaanaNetworkManager } from './network';
import { LaanaWsServerAdapter } from './network/ws-server';
import { LaanaContactActionImpl } from '@/laana/action/contact';
export class NapCatLaanaAdapter {
utils = {
@ -24,6 +25,7 @@ export class NapCatLaanaAdapter {
) {
this.actions = {
...new LaanaMessageActionImpl(this.core, this).handler,
...new LaanaContactActionImpl(this.core, this).handler,
};
this.configLoader = new LaanaConfigLoader(this.core, this.pathWrapper.configPath);