Add local users
This commit is contained in:
@@ -17,7 +17,10 @@ export class IrcbotService {
|
||||
public readonly configService: ConfigService,
|
||||
public readonly domainrProxy: DomainrproxyService,
|
||||
) {
|
||||
if (!this.configService.get<boolean>('irc.enabled')) return;
|
||||
if (!this.configService.get<boolean>('irc.enabled')) {
|
||||
this.logger.verbose('IRC disabled, not connecting');
|
||||
return;
|
||||
};
|
||||
const nick = this.configService.get<string>('irc.nick') || 'us-dev';
|
||||
const ircPassword = this.configService.get<string>('irc.password');
|
||||
this.socket = connect({
|
||||
@@ -68,7 +71,7 @@ export class IrcbotService {
|
||||
this.client.send(channel, `Dunno what ${command} means`);
|
||||
return;
|
||||
}
|
||||
} catch {}
|
||||
} catch { }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user