Files
openclaw/extensions/irc/configured-state.ts
2026-06-04 21:33:54 -04:00

10 lines
344 B
TypeScript

// Irc helper module supports configured state behavior.
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
);
}