import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers"; import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input"; import { patchChannelConfigForAccount } from "openclaw/plugin-sdk/setup-runtime"; import { formatDocsLink } from "openclaw/plugin-sdk/setup-tools"; import type { ResolvedSlackAccount } from "./accounts.js"; import type { OpenClawConfig } from "./channel-api.js";
export function buildSlackSetupLines(botName = "OpenClaw"): string[] { return [ "1) Slack API -> Create App -> From scratch or From manifest (with the JSON below)", "2) Add Socket Mode + enable it to get the app-level token (xapp-...)", "3) Install App to workspace to get the xoxb- bot token", "4) Enable Event Subscriptions (socket) for message events", "5) App Home -> enable the Messages tab for DMs", "Tip: set SLACK_BOT_TOKEN + SLACK_APP_TOKEN in your env.",
`Docs: ${formatDocsLink("/slack", "slack")}`, "", "Manifest (JSON):",
buildSlackManifest(botName),
];
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.