mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 11:21:09 +02:00
- All bots now use HealthController from @manacore/matrix-bot-common - Deleted 19 duplicate health.controller.ts files - Added IConfigService interface for @nestjs/config v3/v4 compatibility - matrix-stats-bot migrated to use BaseMatrixService as example - All 19 bots pass type-check This consolidation eliminates ~400 lines of duplicate health check code. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
510 B
TypeScript
18 lines
510 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { HealthController, createHealthProvider } from '@manacore/matrix-bot-common';
|
|
import configuration from './config/configuration';
|
|
import { BotModule } from './bot/bot.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
load: [configuration],
|
|
}),
|
|
BotModule,
|
|
],
|
|
controllers: [HealthController],
|
|
providers: [createHealthProvider('matrix-contacts-bot')],
|
|
})
|
|
export class AppModule {}
|