马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
功能如图:
docker摆设
- version: "3"
- services:
- excalidraw:
- image: dannicool/docker-wechatbot-webhook:latest
- container_name: wechatbot-webhook
- deploy:
- resources:
- limits:
- cpus: '0.15'
- memory: 500M
- reservations:
- cpus: '0.05'
- memory: 80M
- restart: always
- ports:
- - 3005:3001
- environment:
- - LOG_LEVEL=info # 调整容器输出级别(不影响日志
文件输出等级)运行时提示的消息等级(默认info,debug级别会输出详细的日志 ) - # - DISABLE_AUTO_LOGIN=true # 如果不希望登录一次后就记住当前账号,想每次都扫码登陆,填 true
- - ACCEPT_RECVD_MSG_MYSELF=true # 如果希望机器人可以自己接收消息,填 true
- - RECVD_MSG_API=http://192.168.2.200:8082/conut # 如果想自己处理收到消息的逻辑,在下面填上你的API地址, 默认为空
- - LOGIN_API_TOKEN=123456
- volumes:
- - ./app:/app/log
复制代码 启动容器
发送指令操纵官网查察: 官网
- #个人
- curl --location 'http://localhost:3005/webhook/msg/v2?token=123456' \
- --header 'Content-Type: application/json' \
- --data '{
- "to": { "alias": "麻总"},
- "data": { "content": "你好" }
- }'
- #群发
- curl --location 'http://localhost:3005/webhook/msg/v2?token=123456' \
- --header 'Content-Type: application/json' \
- --data '{
- "to": "高端运维到点不干",
- "isRoom": true,
- "data": { "content": "11" }
- }'
复制代码 回调所在
办理偶然登录失效的题目
|