Some checks failed
ci/woodpecker/push/api Pipeline failed
- Add CHAT_PROVIDERS injection token for bridge-agnostic access - Conditional loading based on env vars (DISCORD_BOT_TOKEN, MATRIX_ACCESS_TOKEN) - Both bridges can run simultaneously - No crash if neither bridge is configured - Tests verify all configuration combinations Refs #379
16 lines
357 B
TypeScript
16 lines
357 B
TypeScript
/**
|
|
* Bridge Module Constants
|
|
*
|
|
* Injection tokens for the bridge module.
|
|
*/
|
|
|
|
/**
|
|
* Injection token for the array of active IChatProvider instances.
|
|
*
|
|
* Use this token to inject all configured chat providers:
|
|
* ```
|
|
* @Inject(CHAT_PROVIDERS) private readonly chatProviders: IChatProvider[]
|
|
* ```
|
|
*/
|
|
export const CHAT_PROVIDERS = "CHAT_PROVIDERS";
|