Files
workspace/send-dingtalk-document.ps1
aitest 15c4480db1 Add OpenClaw workspace configuration and tools
- Add agent configuration files (AGENTS.md, USER.md, IDENTITY.md, SOUL.md)
- Add git configuration and skills management scripts
- Add frontend/backend analysis tools and reports
- Add DingTalk media sender utilities and documentation
- Fix OpenClaw runtime environment (Node.js and Python)
- Configure git remotes and push scripts
2026-03-05 13:56:59 +09:00

25 lines
1.0 KiB
PowerShell

# DingTalk Media Sender - PowerShell Script
# Configuration
$env:DINGTALK_APP_KEY = "ding4ursdp0l2giat4bj"
$env:DINGTALK_APP_SECRET = "J0gBicjKiIHoKla7WfKKhRs1Tv8L6Xd5UhW3EVQByF16G7Vn7UUcRhP6u-PBCQNo"
$scriptDir = "C:\Users\ALC\.openclaw\skills\dingtalk-media-sender"
$nodeExe = "C:\Users\ALC\.openclaw\openclaw-runtime\node_modules\.bin\node.cmd"
$tsNode = "$scriptDir\node_modules\.bin\ts-node.cmd"
$filePath = "C:\Users\ALC\.openclaw\workspace\前后端功能与开源可修改性分析报告.docx"
# Step 1: Upload file
Write-Host "=== Step 1: Uploading file ==="
cd $scriptDir
& $tsNode scripts\upload-media.ts $filePath file --debug
# Note: Run send-media-group with the returned mediaId
$openConversationId = "cidcjYshXVtKck5LfOO9AqOJg=="
$robotCode = "ding4ursdp0l2giat4bj"
Write-Host "`n=== Step 2: Send to group ==="
Write-Host "After getting mediaId, run:"
Write-Host "& $tsNode scripts\send-media-group.ts $openConversationId $robotCode <mediaId> file `"前后端功能与开源可修改性分析报告.docx`" --debug"