Files
openclaw/extensions/irc/configured-state.ts
2026-04-06 01:02:45 +01:00

9 lines
287 B
TypeScript

export function hasIrcConfiguredState(params: { env?: NodeJS.ProcessEnv }): boolean {
return (
typeof params.env?.IRC_HOST === "string" &&
params.env.IRC_HOST.trim().length > 0 &&
typeof params.env?.IRC_NICK === "string" &&
params.env.IRC_NICK.trim().length > 0
);
}