83 lines
1.8 KiB
Batchfile
83 lines
1.8 KiB
Batchfile
@echo off
|
|
echo ========================================
|
|
echo OpenClaw多Agent系统 - 消息发送工具
|
|
echo ========================================
|
|
echo.
|
|
echo 使用方法:
|
|
echo 发送消息.bat [角色] [消息内容]
|
|
echo.
|
|
echo 可用角色:
|
|
echo PM - 产品经理
|
|
echo BE - 后端工程师
|
|
echo FE - 前端工程师
|
|
echo QA - 测试工程师
|
|
echo ALL - 发送给所有角色
|
|
echo.
|
|
echo 示例:
|
|
echo 发送消息.bat PM "查看当前任务"
|
|
echo 发送消息.bat BE "开始开发接口"
|
|
echo 发送消息.bat ALL "系统维护通知"
|
|
echo.
|
|
echo ========================================
|
|
|
|
if "%1"=="" (
|
|
echo 错误: 请指定角色
|
|
goto :end
|
|
)
|
|
|
|
if "%2"=="" (
|
|
echo 错误: 请指定消息内容
|
|
goto :end
|
|
)
|
|
|
|
set ROLE=%1
|
|
shift
|
|
set MESSAGE=%*
|
|
|
|
echo 正在发送消息...
|
|
echo 角色: %ROLE%
|
|
echo 消息: %MESSAGE%
|
|
echo.
|
|
|
|
if "%ROLE%"=="ALL" (
|
|
echo 发送给所有角色...
|
|
openclaw agent --agent pm --message "[PM] %MESSAGE%"
|
|
timeout /t 2 >nul
|
|
openclaw agent --agent backend --message "[BE] %MESSAGE%"
|
|
timeout /t 2 >nul
|
|
openclaw agent --agent frontend --message "[FE] %MESSAGE%"
|
|
timeout /t 2 >nul
|
|
openclaw agent --agent qa --message "[QA] %MESSAGE%"
|
|
echo.
|
|
echo 消息已发送给所有角色!
|
|
goto :end
|
|
)
|
|
|
|
if "%ROLE%"=="PM" (
|
|
openclaw agent --agent pm --message "[PM] %MESSAGE%"
|
|
goto :end
|
|
)
|
|
|
|
if "%ROLE%"=="BE" (
|
|
openclaw agent --agent backend --message "[BE] %MESSAGE%"
|
|
goto :end
|
|
)
|
|
|
|
if "%ROLE%"=="FE" (
|
|
openclaw agent --agent frontend --message "[FE] %MESSAGE%"
|
|
goto :end
|
|
)
|
|
|
|
if "%ROLE%"=="QA" (
|
|
openclaw agent --agent qa --message "[QA] %MESSAGE%"
|
|
goto :end
|
|
)
|
|
|
|
echo 错误: 未知角色 "%ROLE%"
|
|
echo 可用角色: PM, BE, FE, QA, ALL
|
|
|
|
:end
|
|
echo.
|
|
echo ========================================
|
|
echo 按任意键退出...
|
|
pause >nul |