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 {}
