This commit is contained in:
Ben
2023-07-07 21:04:48 -04:00
parent 5a49c83ed3
commit c409b7c8b0
9 changed files with 682 additions and 14 deletions
+23
View File
@@ -0,0 +1,23 @@
import { Injectable, OnModuleInit } from '@nestjs/common';
import { DiscordService } from './discord.service';
import { TelegramService } from './telegram.service';
@Injectable()
export class NotificationService implements OnModuleInit {
constructor(
private readonly telegramService: TelegramService,
private readonly discordService: DiscordService
) { }
async onModuleInit(): Promise<void> {
}
public async notifySubscribersBlockFound(address: string) {
await this.discordService.notifySUbscribersBlockFound();
await this.telegramService.notifySubscribersBlockFound(address);
}
}