mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
discord
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user