mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
9 lines
287 B
TypeScript
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
|
|
);
|
|
}
|