- 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
28 lines
921 B
PowerShell
28 lines
921 B
PowerShell
# 钉钉配置
|
|
$WEBHOOK_URL = "https://oapi.dingtalk.com/robot/send?access_token=xxx"
|
|
$IMAGE_PATH = "C:\Users\ALC\.openclaw\media\browser\1ad3cfc9-2dd5-496b-9fa5-26d23b973f76.jpg"
|
|
|
|
$APP_KEY = "ding4ursdp0l2giat4bj"
|
|
$APP_SECRET = "J0gBicjKiIHoKla7WfKKhRs1Tv8L6Xd5UhW3EVQByF16G7Vn7UUcRhP6u-PBCQNo"
|
|
|
|
Write-Host "发送日本 Yahoo 首页截图到钉钉..."
|
|
|
|
# 使用钉钉的企业应用内部机器人方式发送
|
|
# 需要通过应用机器人 API 调用
|
|
|
|
$url = "https://oapi.dingtalk.com/robot/send?access_token=xxx" # 需要实际的 access_token
|
|
|
|
$body = @{
|
|
msgtype = "text"
|
|
text = @{
|
|
content = "已获取日本 Yahoo 首页截图,文件保存在本地: $IMAGE_PATH"
|
|
}
|
|
} | ConvertTo-Json -Depth 10
|
|
|
|
try {
|
|
Invoke-RestMethod -Uri $url -Method Post -Body $body -ContentType "application/json"
|
|
Write-Host "消息发送成功"
|
|
} catch {
|
|
Write-Host "发送失败: $($_.Exception.Message)"
|
|
}
|