a792883583/dsh-message-gateway ↗★ 0
dsh-message-gateway
Universal message-platform gateway for the DSH web GUI: configure QQ / WeChat / WeCom / WeCom AI bot / Discord / Telegram / WhatsApp / Email / Webhooks connectors, save credentials, test connections, and run a persistent WeCom AI bot bridge with per-chat sessions and auto context compression, same as the web conversation.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:a792883583/dsh-message-gateway说明文档
阅读完整 README ↗使用
- 打开 DSH Web(
dsh web),点击侧边栏「消息平台」按钮 - 左侧选择平台,右侧填写凭据
- 点击「保存」:凭据落盘并立即自动触发一次连接测试,状态即时刷新
- 点击「测试连接」:用当前表单值只测不存
- 企微智能机器人保存
botId + secret后立即建立常驻连接;删除配置即断开
从 npm 安装(通用插件,任何 DSH 用户可直接使用)
dsh plugin --profile web add dsh-message-gateway
配置
插件可通过 dsh plugin config 或 profile 配置文件调整(所有项均有默认值,开箱即用):
| 配置 | 类型 | 默认 | 说明 |
|---|---|---|---|
botLocale | zh | en | zh | 机器人回复文案语言 |
maxChatAgents | number | 40 | 每机器人最多保留的聊天会话数,超出自动淘汰最旧 |
botModel | {provider, model} | 无 | 可选:机器人专用模型(优先于部署默认模型;不填则与 Web 对话一致) |
autoStartWecom | boolean | true | 启动时自动用已保存的企业微信智能机器人凭据连接 |
groupReply | boolean | true | 是否回复群聊消息(false 时只处理单聊) |