mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
splash chart data
This commit is contained in:
@@ -39,7 +39,11 @@ export class DiscordService implements OnModuleInit {
|
||||
this.guildId = this.configService.get('DISCORD_BOT_GUILD_ID');
|
||||
this.channelId = this.configService.get('DISCORD_BOT_CHANNEL_ID')
|
||||
|
||||
if (this.token.length < 1 || this.clientId.length < 1 || this.guildId.length < 1 || this.channelId.length < 1) {
|
||||
if (this.token == null || this.token.length < 1 ||
|
||||
this.clientId == null || this.clientId.length < 1 ||
|
||||
this.guildId == null || this.guildId.length < 1 ||
|
||||
this.channelId == null || this.channelId.length < 1
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class TelegramService implements OnModuleInit {
|
||||
private readonly telegramSubscriptionsService: TelegramSubscriptionsService
|
||||
) {
|
||||
const token: string | null = this.configService.get('TELEGRAM_BOT_TOKEN');
|
||||
if (token.length < 1) {
|
||||
if (token == null || token.length < 1) {
|
||||
return;
|
||||
}
|
||||
this.bot = new TelegramBot(token, { polling: true });
|
||||
|
||||
Reference in New Issue
Block a user