mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41: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>
20 lines
594 B
TypeScript
20 lines
594 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { HealthController, createHealthProvider } from '@manacore/matrix-bot-common';
|
|
import { BotModule } from './bot/bot.module';
|
|
import { SkilltreeModule } from './skilltree/skilltree.module';
|
|
import configuration from './config/configuration';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
load: [configuration],
|
|
}),
|
|
BotModule,
|
|
SkilltreeModule,
|
|
],
|
|
controllers: [HealthController],
|
|
providers: [createHealthProvider('matrix-skilltree-bot')],
|
|
})
|
|
export class AppModule {}
|