mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:01:24 +00:00
Slack: add some fixes and connect it all up
This commit is contained in:
12
src/slack/token.ts
Normal file
12
src/slack/token.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export function normalizeSlackToken(raw?: string): string | undefined {
|
||||
const trimmed = raw?.trim();
|
||||
return trimmed ? trimmed : undefined;
|
||||
}
|
||||
|
||||
export function resolveSlackBotToken(raw?: string): string | undefined {
|
||||
return normalizeSlackToken(raw);
|
||||
}
|
||||
|
||||
export function resolveSlackAppToken(raw?: string): string | undefined {
|
||||
return normalizeSlackToken(raw);
|
||||
}
|
||||
Reference in New Issue
Block a user