mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-28 10:37:44 +02:00
♻️ refactor: migrate 19 Matrix bots to shared HealthController
- 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>
This commit is contained in:
parent
145b0b6599
commit
83f2d63f56
62 changed files with 483 additions and 331 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Module } from '@nestjs/common';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import { HealthController } from './health.controller';
|
||||
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';
|
||||
|
|
@ -15,5 +15,6 @@ import configuration from './config/configuration';
|
|||
SkilltreeModule,
|
||||
],
|
||||
controllers: [HealthController],
|
||||
providers: [createHealthProvider('matrix-skilltree-bot')],
|
||||
})
|
||||
export class AppModule {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue