Open leesolar opened 1 year ago
以docker启动协议服务器之后,客户端如何连接? docker启动方式如下:
export WECHATY_LOG="verbose" export WECHATY_LOG="verbose" export WECHATY_PUPPET="wechaty-puppet-wechat" export WECHATY_TOKEN=“d4bd7d3d-75eb-4b46-85f2-107b1b8fb7e8” export WECHATY_PUPPET_SERVER_PORT="9006" docker run -ti --name wechaty_puppet_service_token_gateway --rm -e WECHATY_LOG -e WECHATY_PUPPET -e WECHATY_PUPPET_SERVER_PORT -e WECHATY_TOKEN -p "$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT" wechaty/wechaty:latest
可以正常启动 bot启动如下:
const bot = WechatyBuilder.build({ name: 'ding-dong-bot-gateway', puppet: 'wechaty-puppet-wechat4u', puppetOptions: { uos:true, endpoint: "127.0.0.1:9006", token:'d4bd7d3d-75eb-4b46-85f2-107b1b8fb7e8' }, })
这样的bot启动貌似没有通过【协议服务器】,请问如何连接【协议服务器】方式启动?
wechaty docker 内置的wechaty-puppet-wechat4u 版本有可能不是最新的
以docker启动协议服务器之后,客户端如何连接? docker启动方式如下:
export WECHATY_LOG="verbose" export WECHATY_LOG="verbose" export WECHATY_PUPPET="wechaty-puppet-wechat" export WECHATY_TOKEN=“d4bd7d3d-75eb-4b46-85f2-107b1b8fb7e8” export WECHATY_PUPPET_SERVER_PORT="9006" docker run -ti --name wechaty_puppet_service_token_gateway --rm -e WECHATY_LOG -e WECHATY_PUPPET -e WECHATY_PUPPET_SERVER_PORT -e WECHATY_TOKEN -p "$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT" wechaty/wechaty:latest
可以正常启动 bot启动如下:
const bot = WechatyBuilder.build({ name: 'ding-dong-bot-gateway', puppet: 'wechaty-puppet-wechat4u', puppetOptions: { uos:true, endpoint: "127.0.0.1:9006", token:'d4bd7d3d-75eb-4b46-85f2-107b1b8fb7e8' }, })
这样的bot启动貌似没有通过【协议服务器】,请问如何连接【协议服务器】方式启动?