Add redirects
All checks were successful
Gitea Actions Demo / build (push) Successful in 5m20s

This commit is contained in:
2023-12-04 16:46:16 -07:00
parent 6ecdd5a0b8
commit d00fe6fdb7
11 changed files with 82 additions and 50 deletions

View File

@@ -18,7 +18,7 @@ export class IrcbotService {
public readonly domainrProxy: DomainrproxyService,
) {
if (!this.configService.get<boolean>('irc.enabled')) return;
const nick = process.env.NODE_ENV === 'production' ? 'us-bot' : 'us-dev';
const nick = this.configService.get<string>('irc.nick') || 'us-dev';
const ircPassword = this.configService.get<string>('irc.password');
this.socket = connect({
port: this.configService.get<number>('irc.port'),
@@ -30,7 +30,7 @@ export class IrcbotService {
if (ircPassword) this.client.pass(ircPassword);
this.client.user(nick, `us.dev bot ${process.env.NODE_ENV}`);
this.client.nick(nick);
// this.client.send('nickserv', `identify ${nick} ${ircPassword}`);
this.client.send('nickserv', `identify ${nick} ${ircPassword}`);
console.log(nick);
const channel: string = this.configService.get<string>(
'irc.channel',