技能标识:sdf-com-bridge
Bridge between SDF COM chatroom and Feishu-Lark messaging platform. Supports bi-directional message translation between English and Chinese, command execution, and real-time chat synchronization. Use when connecting to SDF Public Access UNIX System COM chat and relaying messages to Feishu or Lark.
SDF COM聊天室到飞书的桥接器,支持实时消息同步和翻译。
python
from ssh_connection import SSHConnection
conn = SSHConnection(user=yupeng, host=sdf.org)
conn.connect(com -c) # 启动COM
conn.send(g anonradio\n) # 进入房间
| 命令 | 功能 | 描述 |
|---|---|---|
| w | getusers() | 列出用户 |
| l |
python
from terminal_parser import SimpleTextParser
parser = SimpleTextParser()
messages = parser.feed(raw_text)
python
from translator import LLMTranslator
translator = LLMTranslator()
zh = translator.quicktranslateentozh(hello)
| 命令 | 格式 | 功能 |
|---|---|---|
| 发送 | com: 消息 | 发送到COM |
| 状态 |
python
from main import SDFComBridge
bridge = SDFComBridge(
user=yupeng,
host=sdf.org,
target_room=anonradio
)
bridge.start()
bridge.handlefeishumessage(com: hello)
bridge.stop()
安装依赖:
bash
pip install -r requirements.txt
直接运行:
bash
python scripts/main.py
测试连接:
bash
python -c from scripts.sshconnection import SSHConnection; c = SSHConnection(); print(c.check_socket())
编辑main.py:
python
bridge = SDFComBridge(
user=yupeng,
host=sdf.org,
target_room=anonradio
)
自动加入anonradio聊天室。
COM到飞书:
飞书到COM:
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 sdf-com-bridge-1776287534 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 sdf-com-bridge-1776287534 技能
skillhub install sdf-com-bridge-1776287534
文件大小: 18.93 KB | 发布时间: 2026-4-16 16:25