diff --git a/lib/config.ts b/lib/config.ts index 1f8212e..cb63da0 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -103,7 +103,7 @@ export const ConfigSchema = z.object({ nickname: z.string(), discordToken: z.string(), channelMapping: z.record(z.string()), - ircOptions: z.unknown().optional(), + ircOptions: z.custom>().optional(), commandCharacters: z.array(z.string()).optional(), ircNickColor: z.boolean().optional(), ircNickColors: z.array(z.string()).optional(), diff --git a/lib/ircListeners.ts b/lib/ircListeners.ts index 0b0c56c..6b1fac2 100644 --- a/lib/ircListeners.ts +++ b/lib/ircListeners.ts @@ -98,7 +98,7 @@ export function createIrcNickListener(bot: Bot) { if (!bot.config.ircStatusNotices) return; bot.sendExactToDiscord( channel, - `*${oldNick}* is now known as ${newNick}`, + `*${oldNick}* is now known as ${newNick} in the connected IRC server`, ); } } else { @@ -135,7 +135,7 @@ export function createIrcJoinListener(bot: Bot) { if (!bot.config.ircStatusNotices) return; await bot.sendExactToDiscord( channel, - `*${nick}* has joined the channel`, + `*${nick}* has joined the connected IRC channel`, ); }; } @@ -169,7 +169,7 @@ export function createIrcPartListener(bot: Bot) { if (!bot.config.ircStatusNotices) return; await bot.sendExactToDiscord( channel, - `*${nick}* has left the channel (${reason})`, + `*${nick}* has left the connected IRC channel (${reason})`, ); }; } @@ -199,7 +199,7 @@ export function createIrcQuitListener(bot: Bot) { ) return; bot.sendExactToDiscord( channel, - `*${nick}* has quit (${reason})`, + `*${nick}* has quit from the connected IRC server (${reason})`, ); }); };