Slack 配置
通过 Bolt SDK 集成 Slack。
快速开始
配置
Socket Mode (默认):
{
channels: {
slack: {
enabled: true,
appToken: "xapp-...",
botToken: "xoxb-..."
}
}
}或使用环境变量:
export SLACK_APP_TOKEN="xapp-..."
export SLACK_BOT_TOKEN="xoxb-..."Bot Token 权限
必需的 scopes:
chat:writechannels:historygroups:historyim:historyreactions:read/writefiles:write