mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-14 14:20:45 +08:00
feat: add Slack bot integration
This commit is contained in:
parent
bee4c2927f
commit
7d44861a07
28 changed files with 3021 additions and 661 deletions
15
src/channels/slack/slack-bridge.mjs
Normal file
15
src/channels/slack/slack-bridge.mjs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { TextHarnessBridge, createTextBridgeStatus } from '../shared/text-harness-bridge.mjs';
|
||||
|
||||
export const SLACK_DESCRIPTOR = Object.freeze({
|
||||
key: 'slack',
|
||||
label: 'Slack',
|
||||
connectionLabel: ' Socket Mode 长连接',
|
||||
});
|
||||
|
||||
export class SlackHarnessBridge extends TextHarnessBridge {
|
||||
constructor(options) {
|
||||
super({ descriptor: SLACK_DESCRIPTOR, ...options });
|
||||
}
|
||||
}
|
||||
|
||||
export { createTextBridgeStatus as createSlackBridgeStatus };
|
||||
Loading…
Add table
Add a link
Reference in a new issue