Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

715 B
Raw Blame
import { channelDocUrl } from '@lobechat/const';

import { PLATFORM_UNSUPPORTED_MESSAGE_APIS } from '../messageCapabilities';
import type { PlatformDefinition } from '../types';
import { SlackClientFactory } from './client';
import { DEFAULT_SLACK_CONNECTION_MODE } from './const';
import { schema } from './schema';

export const slack: PlatformDefinition = {
  id: 'slack',
  name: 'Slack',
  connectionMode: DEFAULT_SLACK_CONNECTION_MODE,
  description: 'Connect a Slack bot',
  documentation: {
    portalUrl: 'https://api.slack.com/apps',
    setupGuideUrl: channelDocUrl('slack'),
  },
  schema,
  unsupportedMessageApis: PLATFORM_UNSUPPORTED_MESSAGE_APIS.slack,
  clientFactory: new SlackClientFactory(),
};