mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-16 11:41:08 +00:00
8 lines
321 B
TypeScript
8 lines
321 B
TypeScript
const SLACK_CONFIGURED_ENV_KEYS = ["SLACK_APP_TOKEN", "SLACK_BOT_TOKEN", "SLACK_USER_TOKEN"];
|
|
|
|
export function hasSlackConfiguredState(params: { env?: NodeJS.ProcessEnv }): boolean {
|
|
return SLACK_CONFIGURED_ENV_KEYS.some(
|
|
(key) => typeof params.env?.[key] === "string" && params.env[key]?.trim().length > 0,
|
|
);
|
|
}
|