mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
8 lines
277 B
TypeScript
8 lines
277 B
TypeScript
// Discord helper module supports configured state behavior.
|
|
export function hasDiscordConfiguredState(params: { env?: NodeJS.ProcessEnv }): boolean {
|
|
return (
|
|
typeof params.env?.DISCORD_BOT_TOKEN === "string" &&
|
|
params.env.DISCORD_BOT_TOKEN.trim().length > 0
|
|
);
|
|
}
|