mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-25 05:09:31 +00:00
10 lines
344 B
TypeScript
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
|
|
);
|
|
}
|