mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 15:59:40 +02:00
All 19 Matrix bots now use SessionModule.forRoot({ storageMode: 'redis' })
to share user sessions across all bots via Redis. Users only need to
login once with any bot to be authenticated with all bots.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
755 B
TypeScript
20 lines
755 B
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { MatrixService } from './matrix.service';
|
|
import { CommandRouterService } from './command-router.service';
|
|
import { HandlersModule } from '../handlers/handlers.module';
|
|
import { OrchestrationModule } from '../orchestration/orchestration.module';
|
|
import { VoiceModule } from '../voice/voice.module';
|
|
import { SessionModule, CreditModule } from '@manacore/bot-services';
|
|
|
|
@Module({
|
|
imports: [
|
|
forwardRef(() => HandlersModule),
|
|
forwardRef(() => OrchestrationModule),
|
|
VoiceModule,
|
|
SessionModule.forRoot({ storageMode: 'redis' }),
|
|
CreditModule.forRoot(),
|
|
],
|
|
providers: [MatrixService, CommandRouterService],
|
|
exports: [MatrixService, CommandRouterService],
|
|
})
|
|
export class BotModule {}
|