Git Product home page Git Product logo

leochen-g / wechat-assistant-pro Goto Github PK

View Code? Open in Web Editor NEW
1.6K 24.0 268.0 36.69 MB

智能微秘书,一个全能的微信机器人管理平台,最简单的方式接入 ChatGPT,FastGPT,Dify,Coze知识库,支持绘图,联网查询,语音识别,各种定时任务,支持企微、公众号、5G 消息、WhatsApp

Home Page: https://wechat.aibotk.com

License: MIT License

JavaScript 92.12% Dockerfile 7.88%
chatrobot wechat wechaty wechatbot whatsapp-bot coze coze-bot

wechat-assistant-pro's Introduction

 由Wechaty提供 node version

智能微秘书

智能机器人配置管理平台,一键接入ChatGPT对话,无缝适配Dify,FastGPT,Coze知识库!

支持群组,个人定义不同的角色,灵活配置各种对话模式,绘图,识图,联网查询,GPTs,语音分析,技能丰富多样!拥有各种定时任务,RSS订阅,倒计时提醒,新闻咨询发送,批量群发,转发,跨群聊天,提醒功能,API发送消息

配合智能微秘书客户端可以一键接入公众号,企业微信,Gitter,Lark,WhatsApp,5G消息等Wechaty所支持的协议

微秘书官网

本项目是搭配智能微秘书平台使用的微秘书客户端,想要使用自己的机器人,必须自己部署微秘书客户端方可。

依赖

node 版本 >18

项目说明

本项目是基于wechaty 的开源智能机器人项目,更多关于Wechaty项目说明及 api 文档可以移步:wechaty 介绍

微秘书部署详细教程链接地址:微秘书文档

更多功能说明

  • 每日说,定时给女朋友发送每日天气提醒,以及每日一句
  • 定时提醒
  • 当天定时提醒 例:"提醒 我 18:00 下班了,记得带好随身物品"
  • 每天定时提醒 例:"提醒 我 每天 18:00 下班了,记得带好随身物品"
  • 指定日期提醒 例:"提醒 我 2019-05-10 8:00 还有 7 天是女朋友生日了,准备一下"
  • 智能机器人
  • 天行机器人
  • 图灵机器人
  • 微信开放对话平台
  • 火出圈的ChatGPT
    • 支持多种模型在线切换,代理在线配置
    • 自定义对话配置, 不同群,不同好友,不同的对话配置
    • Prompts 市场,设定不同角色
    • 无缝对接Dify和FastGPT向量知识库平台
    • GPT-4V识图功能
    • DALL-E3绘图功能
    • 多模态,Dify插件,联网模式,爬取网站内容
  • 更多
  • 定时任务
  • 不同新闻资讯定时发送
  • 付费定制个性化内容定时发送
  • 固定素材内容定时发送
  • 倒计时提醒
  • rss订阅推送
  • 更多功能等你来 pr
  • 关键词
  • 关键词加好友,加好友欢迎词设置
  • 关键词加群,群欢迎词设置
  • 关键词回复
  • 技能中心
    • 天气查询 例:"上海天气"
    • 垃圾分类 例:"?香蕉皮"
    • 名人名言 例: "名人名言"
    • 老黄历查询 例: "黄历 2019-6-13"
    • 姓氏起源 例: "姓陈"
    • 星座运势 例: "*双子座"
    • 神回复 例: "神回复"
    • 获取表情包 例: "表情包你好坏"
    • 获取美女图 例: "美女图"
    • 群合影 例: "群合影"
    • 牛年头像 例: "牛气冲天"
    • 更多待你发现
  • 进群自动欢迎
  • 加好友自动回复
  • 自动更新配置文件,无需重启
  • 默认给机器人发送 ‘更新’ 触发拉取新配置文件操作,可在面板小助手配置->关键词回复->关键词事件进行修改关键词
  • 特色功能
  • api发送消息
  • 主动更新配置
  • 主动同步好友和群列表
  • 跨群聊天,自动转发消息
  • 不同好友或者群组设置不同的ChatGPT角色,实现千人千面

更多详情介绍:功能概览

提前准备

注册智能微秘书管理账号

  1. 注册:智能微秘书

  2. 初始化配置文件小助手配置->基础配置,修改后保存

  3. 个人中心获取APIKEYAPISECRET,后续配置用到

注册天行数据账号

由于本项目大部分定时资讯和一些天气接口来自于天行数据,所以需要提前准备好天行数据的账号,同时申请好相关接口的权限

1、注册: 天行数据

2、申请接口权限

必选接口

可选接口(如果想使用相应的功能还是必须申请的),但是如果默认使用了天行机器人,以下功能接口无需申请也可以,机器人会直接返回对应信息

目前平台只适配了以上天行数据的接口,其他接口暂未适配,如有需要,可以联系定制

开始

源码运行

需要node版本>16,如果是windows 系统,请使用win10及以上版本

Step 1: 安装

克隆本项目,并进入项目根目录执行 npm install安装项目依赖

Step 2: 配置

src/index.js代码中配置APIKEYAPISECRET

Step 3: 运行

执行命令npm run start,终端会显示二维码,可以直接扫码,也可以到智能微秘书(小助手配置->登录状态中进行扫码登录)

Step 4: 配置相应功能

智能微秘书中配置你需要的功能后,给启动的微信发送更新关键词即可拉取最新配置(或者你自己设置的更新关键词,初始关键词是更新,** 每次修改配置后,请记得一定发送关键词更新配置**

Docker部署

由于自己构建部分依赖安装比较慢,或者经常会卡住,所以本项目已经提前构建好发布到dockerhub了,直接pull就行了

注:使用第三方镜像源加速的。拉取的可能不是最新版本,所以会运行不起来,建议使用官方镜像源,自行切换,不会的可以百度一下

可以在https://hub.docker.com/r/aibotk/wechat-assistant/tags 这里查看到最新的 tag版本

拉取完毕的大小大概不到 500M ,如果你拉取的大小超过 1G,大概率是拉取错版本了,请切换成官方源拉取

国内用户可以用这个镜像地址进行拉取 registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant:latest

step1: 拉取镜像

# docker pull registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant:latest

docker pull aibotk/wechat-assistant

step2: 启动docker

# docker run -d -e AIBOTK_KEY="微秘书apikey" -e AIBOTK_SECRET="微秘书apiSecret" --name=wechatbot registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant:latest

docker run -d -e AIBOTK_KEY="微秘书apikey" -e AIBOTK_SECRET="微秘书apiSecret" --name=wechatbot aibotk/wechat-assistant

查看docker日志

docker logs  wechatbot

自行构建docker镜像

需要提前安装 docker 环境,项目根目录执行一下命令

docker build -t wechat-assistant .
#web协议
docker run -e AIBOTK_KEY="微秘书apikey" -e AIBOTK_SECRET="微秘书apiSecret" wechat-assistant

其他步骤同上

使用Gitpod 在线运行测试

现智能微秘书已经适配Gitpod,如果你想测试自己的账号是否能够正常登录,可以在线运行一下测试,此环境仅做测试,不建议作为生产环境使用。

Gitpod 是一个在线和开源平台,用于自动化和现成代码的开发环境。您可以点击下面的按钮在gitpod 上访问wechat-assistant-pro的完整设置。如果您以前从未使用过 gitpod,则需要使用您的 gitHub 帐户登录。

GitPod Ready-to-Code

更多关于Gitpod的信息可以参考: https://wechaty.js.org/2021/02/06/wechaty-getting-started-without-leave-your-browser/

Railway部署

Deploy on Railway

环境变量:AIBOTK_KEY和AIBOTK_SECRET必填

ipad协议运行

查看:如何使用padlocal协议

企微协议运行

查看:如何使用企微部署

公众号部署

公众号部署目前仅只支持源码部署配置

修改文件src/office.js文件变量

import {WechatyBuilder} from 'wechaty'
import {WechatyWebPanelPlugin} from 'wechaty-web-panel'
import {PuppetOA} from 'wechaty-puppet-official-account'
const name = 'office-assistant-pro';
let bot = '';
const oa = new PuppetOA({
    appId           : '公众号appid',
    appSecret       : '公众号appSecret',
    token           : '公众号加密token',
    // personalMode: true, // 如果你是个人订阅号或者未认证 请开启此项
    // port 和 webhookProxyUrl 自己选择一个
    // port: 8077, // 有自己域名或者服务器 可以启用这个 服务启动的端口 自己映射好配到公众号后台机就行
    webhookProxyUrl: 'https://****.loca.lt'  // 如果没有自己的域名可以直接用默认自带穿透代理服务localtunnel ***替换成随机字符串即可  这个域名记得配置到公众号后台
})


bot = WechatyBuilder.build({
    name, // generate xxxx.memory-card.json and save login data for the next login
    puppet: oa,
});


bot
    .use(
        WechatyWebPanelPlugin({
            apiKey: '****',
            apiSecret: '****'
        }
    ))
bot.start()
    .catch((e) => console.error(e));

执行命令:npm run office

体验与交流

扫描下方二维码,添加智能微秘书,体验以上所有功能,发送加群关键词即可进入交流群,如果微信无法添加可以先进QQ群:1045575073

更新日志

更新日志

常见问题处理

参见https://help.aibotk.com

面板预览

功能预览

个人定时与群定时任务

免责声明

本软件依据github上开源项目 Wechaty

通过简单的设置UI和交互,运行IM机器人。

请遵守国家法律政策,请勿用于非法犯罪行为!

请合理使用,一切不良行为和后果均与作者无关!

本项目不参与解析任何底层代码,只是适配层,所有底层协议均为第三方提供,与本人无关!

wechat-assistant-pro's People

Contributors

leochen-g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wechat-assistant-pro's Issues

扫码之后出现的错误

17:35:00 ERR PuppetWeChatBridge onLoad() exception: Error: execute proxyWechaty(init) error: 503, init() without a ready angular env
错误 GError: execute proxyWechaty(init) error: 503, init() without a ready angular env
at Bridge.inject (file:///root/wechat-assistant-pro/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:266:23)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Bridge.onLoad (file:///root/wechat-assistant-pro/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:148:13) {
code: 2,
details: 'Error: execute proxyWechaty(init) error: 503, init() without a ready angular env\n' +
' at Bridge.inject (file:///root/wechat-assistant-pro/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:266:23)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
' at async Bridge.onLoad (file:///root/wechat-assistant-pro/node_modules/wechaty-puppet-wechat/dist/esm/src/bridge.js:148:13)'
}
推送错误成功 executeproxyWechaty(init)error:503,init()withoutareadyangularenv

apiKey和apiSecret错误

使用环境变量中的 aibotkKey
使用环境变量中的 aibotkSecret
默认使用uos web协议启动
贴心助理Contact<小秘书>登录了
更新插件版本号 1.2.12
接口请求失败https://api-bot.aibotk.com/open/v1/api/webPanel/version 请检查apiKey和apiSecret是否填写错误或未正确传递
接口https://api-bot.aibotk.com/open/v1/api/wechat/qrcode请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递
推送二维码成功
接口https://api-bot.aibotk.com/open/v1/api/wechat/qrerror请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递
推送错误成功
接口https://api-bot.aibotk.com/open/v1/api/wechat/config请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递
获取配置文件失败:TypeError: Cannot read properties of undefined (reading 'config')
登录后初始化失败 TypeError: Cannot read properties of undefined (reading 'userInfo')
at WechatyImpl.onLogin (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-login.js:18:35)
at runNextTicks (node:internal/process/task_queues:61:5)
at processImmediate (node:internal/timers:437:9)
所有数据准备完毕
e TypeError: Cannot read properties of undefined (reading 'weixin')
at Object.updateContactInfo (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/common/index.js:39:41)
接口https://api-bot.aibotk.com/open/v1/api/task请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递
获取定时任务成功:undefined
initTaskLocalSchedule error TypeError: Cannot destructure property 'dayTaskSchedule' of 'config' as it is undefined.
at initTaskLocalSchedule (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/task/index.js:201:17)
at runNextTicks (node:internal/process/task_queues:61:5)
at processImmediate (node:internal/timers:437:9)
at async initAllSchedule (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/task/index.js:231:5)
e TypeError: Cannot read properties of undefined (reading 'weixin')
at Object.updateRoomInfo (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/common/index.js:93:41)
接口https://api-bot.aibotk.com/open/v1/api/wechat/heart请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递
推送心跳成功

npm install执行过程中报错

报错信息如下
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/wechaty-puppet-wechat
npm ERR! wechaty-puppet-wechat@"^0.28.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer wechaty-puppet-wechat@"^0.30.6" from [email protected]
npm ERR! node_modules/wechaty-web-panel
npm ERR! wechaty-web-panel@"^0.2.17" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/apple/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/apple/.npm/_logs/2021-11-12T10_18_58_855Z-debug.log

启动的时候报permission denied

/home/wechat-assistant-pro/node_modules/nedb/lib/datastore.js:77 3ms
    if (err) { throw err; }
               ^

[Error: EACCES: permission denied, open '/root/.wechaty/wechaty-panel-cache/gptconfig.db'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/root/.wechaty/wechaty-panel-cache/gptconfig.db'
}

启动的时候报上面这个错误了,突然这样的,一开始还用的好好的,而且权限也给了777.

chat gpt API 错误

使用docker最新版

器人接口信息获取失败 Error: ChatGPT failed to refresh auth token. FetchError: invalid json response body at https://chat.openai.com/api/auth/session reason: Unexpected token < in JSON at position 0
at w.refreshAccessToken (file:///bot/node_modules/chatgpt/build/index.js:1:2376)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async w.ensureAuth (file:///bot/node_modules/chatgpt/build/index.js:1:1081)
at async geGPTReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/proxy/chatgpt.js:11:5)
at async Object.dispatchAiBot (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/event-dispatch-service.js:222:23)
at async Object.robotMsg (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filters.js:251:26)
at async getMsgReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filter-service.js:13:27)
at async Object.filterFriendMsg (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filter-service.js:52:24)
at async getContactTextReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/common/reply.js:6:18)
at async dispatchFriendFilterByMsgType (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-message.js:57:34)
at async WechatyImpl.onMessage (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-message.js:194:13)
msg { type: 1, content: '', url: '' }

运行出错

Snipaste_2021-08-10_11-08-11

node.js是官网下载的Latest Current Version: 16.6.1 (includes npm 7.20.3),但是我安装的时候报错了,请教一下,这种问题应该如何进行解决呢?

Windows11用docker跑3.5.9wechat-assistant立刻EXIT0,npm ERR! ERESOLVE unable to resolve dependency tree

2021年11月1日8点开始,通过Windows PowerShell多次运行docker都立刻EXIT0退出,npm ERR! ERESOLVE unable to resolve dependency tree。npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/wechaty-puppet
npm ERR! wechaty-puppet@"^0.41.1" from the root project

PS C:\Users\Administrator> docker run -d -e AIBOTK_KEY="xxx" -e AIBOTK_SECRET="xxx" --name=wechatBot aibotk/wechat-assistant
docker logs Windows PowerShell 版权所有(C) Microsoft Corporation。保留所有权利。

安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows

PS C:\Users\Administrator> docker run -d -e AIBOTK_KEY="b603d509ba8ba9cac6c441088f4bee7ed942f383" -e AIBOTK_SECRET="2b93799e9920bda45e986fb7b29e880ad8cd3d7c" --name=wechatBot aibotk/wechat-assistant
e0a17359738eeeee51815c62911fcef88309a611c635cf96f73fdac035ce774a
PS C:\Users\Administrator> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e0a17359738e aibotk/wechat-assistant "/wechaty/bin/entryp…" 5 seconds ago Up 2 seconds wechatBot
PS C:\Users\Administrator> docker logs -f --tail=200 e0a17359738e


\ \ / /__ | | __ | | _ _
\ \ /\ / / _ / _| ' \ / ` | __| | | |
\ V V / / (| | | | (
| | |
| || |
_/_/ _|_|
| ||_,|_|_, |
|
__/


        https://www.chatie.io

/ | _ __ _ __ ___ | |() __ __ _
| | / _ | '_ | '_ \ / _ / | | | ' \ / _` |
| |
| () | | | | | | | / (| || | | | | (| |
_
_/|| ||| ||_|_|_||| ||_, |
|
_/


/ | | __ | || __ ) ___ | | ___
| | | '_ \ / ` | __| _ \ / _ | _/ |
| |
| | | | (
| | || |) | () | |__
_|| ||_,|_|/ ___/ _|/

WECHATY Environment Variables: 1
WECHATY_DOCKER=1

Starting Docker Container for Wechaty v0.77.3 with Node.js v16.11.1 ...

[email protected] start
node index.js

使用环境变量中的 aibotkKey
使用环境变量中的 aibotkSecret
08:14:08 INFO PuppetManager install(wechaty-puppet-wechat@>=0.28) please wait ...
npm: npm notice
npm:
npm notice New minor version of npm available! 8.0.0 -> 8.1.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.2
npm notice Run npm install -g [email protected] to update!
npm notice

npm: npm ERR! code ERESOLVE

npm: npm ERR! ERESOLVE unable to resolve dependency tree
npm
npm: ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/wechaty-puppet
npm ERR! wechaty-puppet@"^0.41.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer wechaty-puppet@"^1.0.1" from [email protected]
npm ERR! node_modules/wechaty-puppet-wechat
npm ERR! wechaty-puppet-wechat@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR!
npm: this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /bot/.npm/eresolve-report.txt for a full report.

npm:
npm ERR!
npm: A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-11-01T00_14_24_371Z-debug.log

Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.2
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/wechaty-puppet
npm ERR! wechaty-puppet@"^0.41.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer wechaty-puppet@"^1.0.1" from [email protected]
npm ERR! node_modules/wechaty-puppet-wechat
npm ERR! wechaty-puppet-wechat@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /bot/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-11-01T00_14_24_371Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
08:14:24 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.2
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/wechaty-puppet
npm ERR! wechaty-puppet@"^0.41.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer wechaty-puppet@"^1.0.1" from [email protected]
npm ERR! node_modules/wechaty-puppet-wechat
npm ERR! wechaty-puppet-wechat@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /bot/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-11-01T00_14_24_371Z-debug.log

错误 Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.2
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/wechaty-puppet
npm ERR! wechaty-puppet@"^0.41.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer wechaty-puppet@"^1.0.1" from [email protected]
npm ERR! node_modules/wechaty-puppet-wechat
npm ERR! wechaty-puppet-wechat@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /bot/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-11-01T00_14_24_371Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
08:14:24 WARN Wechaty stop() puppet.stop() exception: Cannot read properties of undefined (reading 'stop')
接口https://api-bot.aibotk.com/open/v1/api/wechat/qrerror请求失败 undefined
推送错误成功 Commandfailed:npminstallwechaty-puppet-wechat@>=0.28--no-savenpmnoticenpmnoticeNewminorversionofnpmavailable!8.0.0->8.1.2npmnoticeChangelog:https://github.com/npm/cli/releases/tag/v8.1.2npmnoticeRun[email protected]toupdate!npmnoticenpmERR!codeERESOLVEnpmERR!ERESOLVEunabletoresolvedependencytreenpmERR!npmERR!Whileresolving:[email protected]!Found:[email protected]!node_modules/wechaty-puppetnpmERR!wechaty-puppet@"^0.41.1"fromtherootprojectnpmERR!npmERR!Couldnotresolvedependency:npmERR!peerwechaty-puppet@"^1.0.1"[email protected]!node_modules/wechaty-puppet-wechatnpmERR!wechaty-puppet-wechat@"*"fromtherootprojectnpmERR!npmERR!Fixtheupstreamdependencyconflict,orretrynpmERR!thiscommandwith--force,or--legacy-peer-depsnpmERR!toacceptanincorrect(andpotentiallybroken)dependencyresolution.npmERR!npmERR!See/bot/.npm/eresolve-report.txtforafullreport.npmERR!Acompletelogofthisruncanbefoundin:npmERR!/bot/.npm/_logs/2021-11-01T00_14_24_371Z-debug.log
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.2
npm notice Run npm install -g [email protected] to update!
npm notice


\ \ / /__ | | __ | | _ _
\ \ /\ / / _ / _| ' \ / ` | __| | | |
\ V V / / (| | | | (
| | |
| || |
_/_/ _|_|
| ||_,|_|_, |
|
__/


        https://www.chatie.io

| | () | / _
| | \ / / | | | | | |
| |
> <| | |
| |
| |
|___//__|_| _/

PS C:\Users\Administrator>

运行出错

请求出错 Error: Internal Server Error
at Request.callback (/bot/node_modules/superagent/lib/node/index.js:883:15)
at /bot/node_modules/superagent/lib/node/index.js:1126:20
at IncomingMessage. (/bot/node_modules/superagent/lib/node/parsers/json.js:22:7)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
status: 500,
response: <ref 1> Response {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 4,
_maxListeners: undefined,
socket: [Socket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 500,
statusMessage: 'Internal Server Error',
client: [Socket],
_consuming: false,
_dumped: false,
req: [ClientRequest],
text: '',
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 14,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
request: Request {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_enableHttp2: false,
_agent: false,
_formData: null,
method: 'GET',
url: 'http://api.tianapi.com/txapi/robot/?key=xxx&question=%E4%BB%8A%E5%A4%A9%E6%9C%89%E4%BB%80%E4%B9%88%E6%96%B0%E9%97%BB&userid=xxx',
_header: [Object],
header: [Object],
writable: true,
_redirects: 0,
_maxRedirects: 5,
cookies: '',
qs: {},
_query: [],
qsRaw: [],
_redirectList: [],
_streamRequest: false,
req: [ClientRequest],
protocol: 'http:',
host: 'api.tianapi.com',
_endCalled: true,
_callback: [Function (anonymous)],
res: [IncomingMessage],
_resBuffered: true,
response: [Circular 1],
called: true,
[Symbol(kCapture)]: false
},
req: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [Socket],
_header: 'GET /txapi/robot/?key=xxx&question=%E4%BB%8A%E5%A4%A9%E6%9C%89%E4%BB%80%E4%B9%88%E6%96%B0%E9%97%BB&userid=xxxHTTP/1.1\r\n' +
'Host: api.tianapi.com\r\n' +
'Accept-Encoding: gzip, deflate\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'Authorization: \r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/txapi/robot/?key=xxx&question=%E4%BB%8A%E5%A4%A9%E6%9C%89%E4%BB%80%E4%B9%88%E6%96%B0%E9%97%BB&userid=xxx',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'api.tianapi.com',
protocol: 'http:',
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
text: '',
body: '',
files: undefined,
buffered: true,
headers: {
date: 'Thu, 14 Oct 2021 07:15:53 GMT',
'content-type': 'application/json;charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'access-control-allow-origin': '
',
'access-control-allow-methods': 'POST,GET,OPTIONS',
'access-control-allow-headers': 'Content-Type,Access-Control-Allow-Headers,X-Requested-with,Origin'
},
header: {
date: 'Thu, 14 Oct 2021 07:15:53 GMT',
'content-type': 'application/json;charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'access-control-allow-origin': '
',
'access-control-allow-methods': 'POST,GET,OPTIONS',
'access-control-allow-headers': 'Content-Type,Access-Control-Allow-Headers,X-Requested-with,Origin'
},
statusCode: 500,
status: 500,
statusType: 5,
info: false,
ok: false,
redirect: false,
clientError: false,
serverError: true,
error: Error: cannot GET /txapi/robot/?key=xxx&question=%E4%BB%8A%E5%A4%A9%E6%9C%89%E4%BB%80%E4%B9%88%E6%96%B0%E9%97%BB&userid=xxx(500)
at Response.toError (/bot/node_modules/superagent/lib/node/response.js:98:13)
at ResponseBase._setStatusProperties (/bot/node_modules/superagent/lib/response-base.js:119:48)
at new Response (/bot/node_modules/superagent/lib/node/response.js:44:8)
at Request._emitResponse (/bot/node_modules/superagent/lib/node/index.js:930:18)
at /bot/node_modules/superagent/lib/node/index.js:1126:42
at IncomingMessage. (/bot/node_modules/superagent/lib/node/parsers/json.js:22:7)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
status: 500,
text: '',
method: 'GET',
path: '/txapi/robot/?key=xxx&question=%E4%BB%8A%E5%A4%A9%E6%9C%89%E4%BB%80%E4%B9%88%E6%96%B0%E9%97%BB&userid=xxx'
},
created: false,
accepted: false,
noContent: false,
badRequest: false,
unauthorized: false,
notAcceptable: false,
forbidden: false,
notFound: false,
unprocessableEntity: false,
type: 'application/json',
charset: 'utf-8',
links: {},
setEncoding: [Function: bound ],
redirects: [],
pipe: [Function (anonymous)],
[Symbol(kCapture)]: false
}
}
SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at /bot/node_modules/wechaty-web-panel/src/proxy/superagent.js:28:22
at Request.callback (/bot/node_modules/superagent/lib/node/index.js:905:3)
at /bot/node_modules/superagent/lib/node/index.js:1126:20
at IncomingMessage. (/bot/node_modules/superagent/lib/node/parsers/json.js:22:7)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)


查了下是天行机器人在查询新闻时返回500, 而docker在处理该类错误时直接退出.

一些建议

一些建议
新版本程序捕获到的异常都是直接Exit退出了,这个客户端是一个服务端脚本。应持续稳定。
建议在 http://wechat.aibotk.com/#/dashboard 后台增加联系人报警,群报警功能。有报警后就不用隔三差五看看服务挂没挂

如果客户端断开了链接或者Puppeteer超时,可以在群里 @某某 客户端超时,掉线 获取天气失败 .... 或 小秘书私聊联系人 你的服务超时掉线了。把所有的错误都消化掉,保证基础功能,自动添加好友,自动邀请群聊功能的稳健性、

我有个阿里云1h2g学生机,在一个280人群里发一个群合影。机器直接死掉。当时在外面,只能等我回家处理。这块是不是有方法让他自己消化。不能直接给服务器跑死了。

微信无法扫码登录

我一个wechat,一个微信,wechat无法登录网页版,微信因为早先搞机器人被微信以使用第三方外挂为由限制了扫码登录的功能,请问有其他办法登录吗?

docker扫码登录失败

操作系统:ArchLinux
操作步骤:

  1. 启动docker docker run -d -e AIBOTK_KEY="微秘书apikey" -e AIBOTK_SECRET="微秘书apiSecret" --name=wechatBot aibotk/wechat-assistant
  2. 查看docker日志 docker logs -f --tail=200 xxxx
  3. 手机扫二维码没有登录成功

错误日志:
08:22:31 WARN PuppetWeChatBridge testBlockedMessage() error.ret=1203
08:22:31 INFO PuppetWeChatBridge

    Please see: Account Login Issue <https://github.com/wechaty/wechaty/issues/872>

08:22:31 ERR PuppetWeChatBridge onLoad() exception: Error: 登录失败。
错误 Error: 登录失败。
at PuppetWeChat. (/wechaty/dist/src/wechaty.js:273:44)
at PuppetWeChat.emit (events.js:400:28)
at PuppetWeChat.emit (domain.js:470:12)
at Bridge. (/wechaty/node_modules/wechaty-puppet-wechat/dist/src/puppet-wechat.js:203:45)
at Bridge.emit (events.js:400:28)
at Bridge.emit (domain.js:470:12)
at Bridge.onLoad (/wechaty/node_modules/wechaty-puppet-wechat/dist/src/bridge.js:156:18)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
推送错误成功 登录失败。
08:23:58 WARN PuppetWeChat initScanWatchdog() on(reset) lastFood: [object Object], timePast: 120000
08:23:58 ERR PuppetWeChat initScanWatchdog() on(reset) exception: Error: Protocol error (Page.reload): Session closed. Most likely the page has been closed.
08:23:58 ERR PuppetWeChat initScanWatchdog() on(reset) try to recover by bridge.{quit,init}()
08:23:58 WARN PuppetWeChatBridge stop() page.close() exception: Error: Protocol error: Connection closed. Most likely the page has been closed.
08:23:59 ERR PuppetWeChatBridge onLoad() exception: Error: Failed to add page binding with name wechatyPuppetBridgeEmit: window['wechatyPuppetBridgeEmit'] already exists!
08:23:59 ERR PuppetWeChatBridge onLoad() exception: Error: Protocol error (Runtime.addBinding): Target closed.
(node:39) UnhandledPromiseRejectionWarning: Error: Protocol error: Connection closed. Most likely the page has been closed.
at Object.exports.assert (/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/common/assert.js:26:15)
at Page.close (/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1193:21)
at Bridge.onLoad (/wechaty/node_modules/wechaty-puppet-wechat/dist/src/bridge.js:155:24)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)
(node:39) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
错误 Error: Failed to add page binding with name wechatyPuppetBridgeEmit: window['wechatyPuppetBridgeEmit'] already exists!
at PuppetWeChat. (/wechaty/dist/src/wechaty.js:273:44)
at PuppetWeChat.emit (events.js:400:28)
at PuppetWeChat.emit (domain.js:470:12)
at Bridge. (/wechaty/node_modules/wechaty-puppet-wechat/dist/src/puppet-wechat.js:203:45)
at Bridge.emit (events.js:400:28)
at Bridge.emit (domain.js:470:12)
at Bridge.onLoad (/wechaty/node_modules/wechaty-puppet-wechat/dist/src/bridge.js:156:18)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
推送错误成功 FailedtoaddpagebindingwithnamewechatyPuppetBridgeEmit:window['wechatyPuppetBridgeEmit']alreadyexists!

GPT对话限制次数达到后不断报错

GPT自动对话限制次数达到后,机器人设置: 需要@触发 的情况下

群里每条消息(没有@机器人)都会触发机器人报错 “聊天次数已用完,请联系管理员充值”

难道不应该是在@触发机器人回复后才报错吗?

谢谢

ArchLinux用docker跑小秘书安装wechaty-puppet-wechat过程中失败,npm ERR! GotError [RequestError]: socket hang up

操作系统是ArchLinux,内核版本:5.14.14-arch1-1(64-位)
虚拟终端用的是konsole

docker version Client: Version: 20.10.10 API version: 1.41 Go version: go1.17.2 Git commit: b485636f4b Built: Tue Oct 26 03:44:01 2021 OS/Arch: linux/amd64 Context: default Experimental: true

Server:
Engine:
Version: 20.10.10
API version: 1.41 (minimum version 1.12)
Go version: go1.17.2
Git commit: e2f740de44
Built: Tue Oct 26 03:43:48 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.5.7
GitCommit: 8686ededfc90076914c5238eb96c883ea093a8ba.m
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2d
docker-init:
Version: 0.19.0
GitCommit: de40ad0

时间:2021年10月27日 12:42:17 PM

现象:安装wechaty-puppet-wechat过程中失败,npm ERR! GotError RequestError: socket hang up

虚拟终端日志: ```bash [ht@arch ~]$ date Wed Oct 27 12:42:17 PM CST 2021 [ht@arch ~]$ sudo docker run -d -e AIBOTK_KEY="b603d509ba8ba9cac6c441088f4bee7ed942f383" -e

AIBOTK_SECRET="2b93799e9920bda45e986fb7b29e880ad8cd3d7c" --name=wechatBot aibotk⁄wechat-assistant

[sudo] ht 的密码:
docker: invalid reference format.
See 'docker run --help'.
[ht@arch ~]$ sudo docker run -d -e AIBOTK_KEY="b603d509ba8ba9cac6c441088f4bee7ed942f383" -e

AIBOTK_SECRET="2b93799e9920bda45e986fb7b29e880ad8cd3d7c" --name=wechatBot aibotk/wechat-assistant
docker: Error response from daemon: Conflict. The container name "/wechatBot" is already in use by container

"00afc0fd99502e3acb9065b95c60bba073892458526e0f7eece90519edd5bfb6". You have to remove (or rename) that container to be able to

reuse that name.
See 'docker run --help'.
[ht@arch ~]$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
00afc0fd9950 aibotk/wechat-assistant "/wechaty/bin/entryp…" 22 hours ago Exited (137) 20 hours ago wechatBot
[ht@arch ~]$ sudo docker rm 00afc0fd9950
00afc0fd9950
[ht@arch ~]$ sudo docker run -d -e AIBOTK_KEY="b603d509ba8ba9cac6c441088f4bee7ed942f383" -e

AIBOTK_SECRET="2b93799e9920bda45e986fb7b29e880ad8cd3d7c" --name=wechatBot aibotk/wechat-assistant
3b666050b1f47865464c55bcefc51b04f48f33bb25cfde57cf24168fcad3a5d8
[ht@arch ~]$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3b666050b1f4 aibotk/wechat-assistant "/wechaty/bin/entryp…" 4 seconds ago Up 3 seconds wechatBot
[ht@arch ~]$ sudo docker logs -f --tail=200 3b666050b1f4


\ \ / /__ | | __ | | _ _
\ \ /\ / / _ / _| ' \ / ` | __| | | |
\ V V / / (| | | | (
| | |
| || |
_/_/ _|_|
| ||_,|_|_, |
|
__/


        https://www.chatie.io

/ | _ __ _ __ ___ | |() __ __ _
| | / _ | '_ | '_ \ / _ / | | | ' \ / _` |
| |
| () | | | | | | | / (| || | | | | (| |
_
_/|| ||| ||_|_|_||| ||_, |
|
_/


/ | | __ | || __ ) ___ | | ___
| | | '_ \ / ` | __| _ \ / _ | _/ |
| |
| | | | (
| | || |) | () | |__
_|| ||_,|_|/ ___/ _|/

WECHATY Environment Variables: 1
WECHATY_DOCKER=1

Starting Docker Container for Wechaty v0.77.3 with Node.js v16.11.1 ...

[email protected] start
node index.js

使用环境变量中的 aibotkKey
使用环境变量中的 aibotkSecret
12:43:10 INFO PuppetManager install(wechaty-puppet-wechat@>=0.28) please wait ...
npm: npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated

npm: npm WARN
npm: deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated

npm: npm WARN deprecated
npm: [email protected]: this library is no longer supported

npm: npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained

npm: npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'

npm: npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'

npm: npm
npm: WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained

npm: npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'

npm: npm WARN deprecated
npm: [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is

known to be problematic. See https://v8.dev/blog/math-random for details.

npm: npm WARN deprecated
npm: @hapi/[email protected]: Switch to 'npm install joi'

npm: npm WARN
npm: deprecated [email protected]: request has been deprecated, see request/request#3142

npm: npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint:

blakeembrey/tslint-config-standard#61

npm: npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive

updates.

npm: npm WARN deprecated
npm: [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard

package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here:

standard/standard#1316

npm: npm WARN deprecated
npm: [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for

more information.

npm: npm WARN
npm: deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not need

this installed.

npm: npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain

circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

npm: npm
npm: notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice

npm: npm ERR!
npm: code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq

npm: npm
npm: ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError RequestError: socket hang up
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketOnEnd (node:_http_client:471:9)
npm ERR! at TLSSocket.emit (node:events:402:35)
npm
npm: ERR! at endReadableNT (node:internal/streams/readable:1343:12)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNRESET',
npm ERR! host: 'github.com',
npm ERR!
npm: hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm:

npm: npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-27T05_03_23_650Z-debug.log

Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain

circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint:

blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-

plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here:

standard/standard#1316
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see

palantir/tslint#4534 for more information.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not

need this installed.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain

circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError RequestError: socket hang up
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketOnEnd (node:_http_client:471:9)
npm ERR! at TLSSocket.emit (node:events:402:35)
npm ERR! at endReadableNT (node:internal/streams/readable:1343:12)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNRESET',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-27T05_03_23_650Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
13:03:23 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain

circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint:

blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-

plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here:

standard/standard#1316
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see

palantir/tslint#4534 for more information.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not

need this installed.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain

circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError RequestError: socket hang up
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketOnEnd (node:_http_client:471:9)
npm ERR! at TLSSocket.emit (node:events:402:35)
npm ERR! at endReadableNT (node:internal/streams/readable:1343:12)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNRESET',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-27T05_03_23_650Z-debug.log

错误 Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain

circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint:

blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-

plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here:

standard/standard#1316
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see

palantir/tslint#4534 for more information.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not

need this installed.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain

circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError RequestError: socket hang up
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketOnEnd (node:_http_client:471:9)
npm ERR! at TLSSocket.emit (node:events:402:35)
npm ERR! at endReadableNT (node:internal/streams/readable:1343:12)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNRESET',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-27T05_03_23_650Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
13:03:23 WARN Wechaty stop() puppet.stop() exception: Cannot read properties of undefined (reading 'stop')
接口https://api-bot.aibotk.com/open/v1/api/wechat/qrerror请求失败 undefined
推送错误成功 Commandfailed:npminstallwechaty-puppet-wechat@>=0.28--no-savenpmWARNdeprecatedresolve-

[email protected]:https://github.com/lydell/resolve-

url#[email protected]:Pleaseseehttps://github.com/lydell/urix#deprecatednpmWARNdeprecatedhar-

[email protected]:thislibraryisnolongersupportednpmWARNdeprecated@hapi/[email protected]:Thisversionhasbeendeprecatedandisnolongersupported

ormaintainednpmWARNdeprecated@hapi/[email protected]:Movedto'npminstall@sideway/formula'npmWARNdeprecated@hapi/[email protected]:Movedto'

npminstall@sideway/pinpoint'npmWARNdeprecated@hapi/[email protected]:ThisversionhasbeendeprecatedandisnolongersupportedormaintainednpmWAR

Ndeprecated@hapi/[email protected]:Movedto'npminstall@sideway/address'[email protected]:Pleaseupgradetoversion7orhigher.Olde

rversionsmayuseMath.random()incertaincircumstances,whichisknowntobeproblematic.Seehttps://v8.dev/blog/math-

randomfordetails.npmWARNdeprecated@hapi/[email protected]:Switchto'npminstalljoi'[email protected]:requesthasbeendeprecated

,seehttps://github.com/request/request/issues/3142npmWARNdeprecatedtslint-config-

[email protected]:TSLintisdeprecated,pleasemovetoESLint:https://github.com/blakeembrey/tslint-config-

standard/issues/[email protected]:babel-eslintisnow@babel/eslint-

parser.Thispackagewillnolongerreceiveupdates.npmWARNdeprecatedeslint-plugin-standard@5.0.0:standard16.0.0andeslint-config-

standard16.0.0nolongerrequiretheeslint-plugin-standardpackage.Youcanremoveitfromyourdependencieswith'npmrmeslint-plugin-

standard'.Moreinfohere:https://github.com/standard/standard/issues/[email protected]:TSLinthasbeendeprecatedinfavo

rofESLint.Pleaseseehttps://github.com/palantir/tslint/issues/4534formoreinformation.npmWARNdeprecated@types/[email protected]:Thisisast

ubtypesdefinition.dotenvprovidesitsowntypedefinitions,[email protected]:Pleaseupgradetoversi

on7orhigher.OlderversionsmayuseMath.random()incertaincircumstances,whichisknowntobeproblematic.Seehttps://v8.dev/blog/math-

randomfordetails.npmnoticenpmnoticeNewminorversionofnpmavailable!8.0.0-

8.1.1npmnoticeChangelog:https://github.com/npm/cli/releases/tag/v8.1.1npmnoticeRun[email protected]toupdate!

npmnoticenpmERR!code1npmERR!path/bot/node_modules/wechaty/node_modules/node-jqnpmERR!commandfailednpmERR!commandsh-

cnpmruninstall-binarynpmERR!>[email protected]!>nodescripts/install-binary.jsnpmERR!npmERR!

Downloadingjqfromhttps://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64npmERR!GotError

atObject.onceWrapper(node:events:510:26)npmERR!atClientRequest.emit(node:events:390:28)npmERR!atTLSSocket.socketOnEnd

(node:_http_client:471:9)npmERR!atTLSSocket.emit(node:events:402:35)npmERR!atendReadableNT

(node:internal/streams/readable:1343:12)npmERR!atprocessTicksAndRejections(node:internal/process/task_queues:83:21){npmERR!

code:'ECONNRESET',npmERR!host:'github.com',npmERR!hostname:'github.com',npmERR!method:'GET',npmERR!

path:'/stedolan/jq/releases/download/jq-1.6/jq-linux64',npmERR!protocol:'https:',npmERR!

url:'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'npmERR!}npmERR!

Acompletelogofthisruncanbefoundin:npmERR!/bot/.npm/_logs/2021-10-27T05_03_23_650Z-debug.log
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice


\ \ / /__ | | __ | | _ _
\ \ /\ / / _ / _| ' \ / ` | __| | | |
\ V V / / (| | | | (
| | |
| || |
_/_/ _|_|
| ||_,|_|_, |
|
__/


        https://www.chatie.io

| | () | / _ \
| | \ / / | | | | | |
| |
> <| | |
| |
| |
|___//__|_| _/

[ht@arch ~]$

</details>

反馈一些bug

1.密码为8位以下时显示错误“密码必填”
2.点击注册按钮,验证码错误时,注册成功和验证码失败的提示会同时出现

群消息同步无法取群简称

群消息同步的时候,无法识别群简称,现在是以全称转发消息。
例如:微信每日说 1群,微信每日说 2群,群消息同步的时候,并没有显示【1群】,【2群】,而是全称【微信每日说 1群】【微信每日说 2群】

docker for windows运行aibotk/wechat-assistant4小时中途请求出错Error: connect ECONNREFUSED 118.89.111.208:443直接Exit退出了

操作系统Windows11(已退出预览版),版本是22000.194
台式电脑是Dell inspiron 3470
docker用的是docker for Windows,用的WSL2
拉取镜像
docker pull aibotk/wechat-assistant
启动docker
docker run -d -e AIBOTK_KEY="微秘书apikey" -e AIBOTK_SECRET="微秘书apiSecret" --name=wechatBot aibotk/wechat-assistant
查看docker日志
docker logs -f --tail-200 xxx

10/13/21 8点启动实例,微信扫描桌面端登录小助手。
10/13/21 12点打开docker for Windows界面发现容器已经Exit,为灰色。

docker 日志如下:
扫描状态 3
https://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Flogin.weixin.qq.com%2Fl%2FAe60NuNC7A%3D%3D
推送二维码成功
贴心助理Contact<黄天>登录了
更新插件版本号 0.2.12
接口请求失败 没有权限,请在微秘书平台开通会员后使用
推送二维码成功
推送错误成功
上传结果 wechat/avatar/MGJXYUw0NU43YkI5clIxWg=.jpeg
推送头像成功
所有数据准备完毕
推送心跳成功
请求出错 Error: connect ECONNREFUSED 118.89.111.208:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1146:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '118.89.111.208',
port: 443,
response: undefined
}
TypeError: Cannot read properties of undefined (reading 'text')
at /bot/node_modules/wechaty-web-panel/src/proxy/superagent.js:28:32
at Request.callback (/bot/node_modules/superagent/lib/node/index.js:905:3)
at ClientRequest. (/bot/node_modules/superagent/lib/node/index.js:822:12)
at ClientRequest.emit (node:events:390:28)
at ClientRequest.emit (node:domain:475:12)
at TLSSocket.socketErrorListener (node:_http_client:447:9)
at TLSSocket.emit (node:events:390:28)
at TLSSocket.emit (node:domain:475:12)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm notice
npm notice New major version of npm available! 7.24.0 -> 8.0.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.0.0
npm notice Run npm install -g [email protected] to update!
npm notice


\ \ / /__ | | __ | | _ _
\ \ /\ / / _ / _| ' \ / ` | __| | | |
\ V V / / (| | | | (
| | |
| || |
_/_/ _|_|
| ||_,|_|_, |
|
__/


        https://www.chatie.io

| | () | / |
| | \ / / | | | |
| |
> <| | |
| |
|_____/
/__|_| ||

docker runing report error

wechaty_1 | 接口请求失败https://api-bot.aibotk.com/open/v1/api/webPanel/version 用户不存在,请联系管理员
wechaty_1 | 接口https://api-bot.aibotk.com/open/v1/api/wechat/qrcode请求失败 用户不存在,请联系管理员
wechaty_1 | 推送二维码成功
wechaty_1 | 接口https://api-bot.aibotk.com/open/v1/api/wechat/qrerror请求失败 用户不存在,请联系管理员
wechaty_1 | 推送错误成功
wechaty_1 | 获取配置文件失败:TypeError: Cannot read properties of undefined (reading 'config')
wechaty_1 | 接口https://api-bot.aibotk.com/open/v1/api/wechat/config请求失败 用户不存在,请联系管理员
wechaty_1 | 登录后初始化失败 TypeError: Cannot read properties of undefined (reading 'userInfo')
wechaty_1 | at WechatyImpl.onLogin (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-login.js:19:35)
wechaty_1 | at runNextTicks (node:internal/process/task_queues:61:5)
wechaty_1 | at processImmediate (node:internal/timers:437:9)
wechaty_1 | 13:45:19 VERB PuppetWeChat readyStable() emit(ready)
wechaty_1 | 13:45:19 VERB StateSwitch active(true) <- (false)
wechaty_1 | 所有数据准备完毕
wechaty_1 | 接口https://api-bot.aibotk.com/open/v1/api/wechat/heart请求失败 用户不存在,请联系管理员
wechaty_1 | 推送心跳成功
wechaty_1 | e TypeError: Cannot read properties of undefined (reading 'weixin')
wechaty_1 | at Object.updateContactInfo (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/common/index.js:39:41)
wechaty_1 | at runNextTicks (node:internal/process/task_queues:61:5)
wechaty_1 | at processImmediate (node:internal/timers:437:9)
wechaty_1 | at async WechatyImpl.onReady (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-ready.js:13:9)
wechaty_1 | e TypeError: Cannot read properties of undefined (reading 'weixin')
wechaty_1 | at Object.updateRoomInfo (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/common/index.js:93:41)
wechaty_1 | at async WechatyImpl.onReady (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-ready.js:15:9)
^CGracefully stopping... (press Ctrl+C again to force)
Stopping wechaty_wechaty_1 ...
Killing wechaty_wechaty_1 ... done
ERROR: 2

npm run start error

(node:72294) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??='
at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)
(Use node --trace-warnings ... to show where the warning was created)

OpenAI api被墙

api被墙了,能否在chatgpt创建的时候,支持docker环境变量配置接口代理,这样就可以把他代理掉了。

关于在群聊中使用关键词回复的几个疑问。

感谢作者,有几个使用上的问题想请教一下:
1、关键词回复在个人发送时能够生效,但在群聊中无法回复,是否需要开通会员?或是要以什么特定格式@机器人?
2、群定时任务的功能是否能以某种方式支持@所有人(使用账号是群管理员)或群成员?

本地启动服务后,扫码后,错误

提示如下:
09:55:54 ERR PuppetWeChatBridge onLoad() exception: Error: testBlockedMessage() no text found! 错误 GError: Protocol error: Connection closed. Most likely the page has been closed.

chatgpt报错

昨天晚上还行的,今天就报错了,错误如下

Error: ChatGPT error 404: {
    "error": {
        "message": "That model does not exist",
        "type": "invalid_request_error",
        "param": null,
        "code": null
    }
}

神奇了,这两周8点-9点docker for windows二维码生成期间报错EXIT0;扫码,接口请求失败EXIT1。9点半左右却可以登录了。

2021/10/20 npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443

完整日志211020 npm: npm npm: ERR! code 1 npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq

npm: npm ERR! command failed

npm: npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR!
npm: at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! at TLSSocket.emit (node:events:390:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm
npm: ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm:

npm: npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-20T00_04_38_444Z-debug.log

Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint: blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here: standard/standard#1316
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! at TLSSocket.emit (node:events:390:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-20T00_04_38_444Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
08:04:38 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint: blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here: standard/standard#1316
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! at TLSSocket.emit (node:events:390:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-20T00_04_38_444Z-debug.log

错误 Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint: blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here: standard/standard#1316
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! at TLSSocket.emit (node:events:390:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-20T00_04_38_444Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
08:04:38 WARN Wechaty stop() puppet.stop() exception: Cannot read properties of undefined (reading 'stop')
接口请求失败 undefined
推送错误成功 Commandfailed:npminstallwechaty-puppet-wechat@>[email protected]:Pleaseseehttps://github.com/lydell/urix#[email protected]:https://github.com/lydell/resolve-url#[email protected]:thislibraryisnolongersupportednpmWARNdeprecated@hapi/[email protected]:ThisversionhasbeendeprecatedandisnolongersupportedormaintainednpmWARNdeprecated@hapi/[email protected]:Movedto'npminstall@sideway/address'npmWARNdeprecated@hapi/[email protected]:Movedto'npminstall@sideway/pinpoint'npmWARNdeprecated@hapi/[email protected]:ThisversionhasbeendeprecatedandisnolongersupportedormaintainednpmWARNdeprecated@hapi/[email protected]:Movedto'npminstall@sideway/formula'[email protected]:Pleaseupgradetoversion7orhigher.OlderversionsmayuseMath.random()incertaincircumstances,whichisknowntobeproblematic.Seehttps://v8.dev/blog/math-randomfordetails.npmWARNdeprecated@hapi/[email protected]:Switchto'npminstalljoi'[email protected]:requesthasbeendeprecated,seehttps://github.com/request/request/issues/[email protected]:TSLintisdeprecated,pleasemovetoESLint:https://github.com/blakeembrey/tslint-config-standard/issues/[email protected]:standard16.0.0andeslint-config-standard16.0.0nolongerrequiretheeslint-plugin-standardpackage.Youcanremoveitfromyourdependencieswith'npmrmeslint-plugin-standard'.Moreinfohere:https://github.com/standard/standard/issues/[email protected]:babel-eslintisnow@babel/eslint-parser.Thispackagewillnolongerreceiveupdates.npmWARNdeprecated@types/[email protected]:Thisisastubtypesdefinition.dotenvprovidesitsowntypedefinitions,[email protected]:TSLinthasbeendeprecatedinfavorofESLint.Pleaseseehttps://github.com/palantir/tslint/issues/[email protected]:Pleaseupgradetoversion7orhigher.OlderversionsmayuseMath.random()incertaincircumstances,whichisknowntobeproblematic.Seehttps://v8.dev/blog/math-randomfordetails.npmERR!code1npmERR!path/bot/node_modules/wechaty/node_modules/node-jqnpmERR!commandfailednpmERR!commandsh-cnpmruninstall-binarynpmERR!>[email protected]!>nodescripts/install-binary.jsnpmERR!npmERR!Downloadingjqfromhttps://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64npmERR!GotError[RequestError]:connectECONNREFUSED20.205.243.166:443npmERR!atClientRequest.(/bot/node_modules/wechaty/node_modules/got/index.js:182:22)npmERR!atObject.onceWrapper(node:events:510:26)npmERR!atClientRequest.emit(node:events:390:28)npmERR!atTLSSocket.socketErrorListener(node:_http_client:447:9)npmERR!atTLSSocket.emit(node:events:390:28)npmERR!atemitErrorNT(node:internal/streams/destroy:157:8)npmERR!atemitErrorCloseNT(node:internal/streams/destroy:122:3)npmERR!atprocessTicksAndRejections(node:internal/process/task_queues:83:21){npmERR!code:'ECONNREFUSED',npmERR!host:'github.com',npmERR!hostname:'github.com',npmERR!method:'GET',npmERR!path:'/stedolan/jq/releases/download/jq-1.6/jq-linux64',npmERR!protocol:'https:',npmERR!url:'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'npmERR!}npmERR!Acompletelogofthisruncanbefoundin:npmERR!/bot/.npm/_logs/2021-10-20T00_04_38_444Z-debug.log
npm notice
npm notice New major version of npm available! 7.24.0 -> 8.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.0
npm notice Run npm install -g [email protected] to update!
npm notice


\ \ / /__ | | __ | | _ _
\ \ /\ / / _ / _| ' \ / ` | __| | | |
\ V V / / (| | | | (
| | |
| || |
_/_/ _|_|
| ||_,|_|_, |
|
__/


        https://www.chatie.io

| | () | / _
| | \ / / | | | | | |
| |
> <| | |
| |
| |
|___//__|_| _/

PS C:\Users\Administrator>

2021/10.22 npm: ERR_SOCKET_TIMEOUT

完整日志211022 \ \ /\ / / _ \/ __| '_ \ / _` | __| | | | \ V V / __/ (__| | | | (_| | |_| |_| | \_/\_/ \___|\___|_| |_|\__,_|\__|\__, | |___/ ____________________________________________________ https://www.chatie.io ____ _ _ / ___|___ _ __ _ __ ___ ___| |_(_)_ __ __ _ | | / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` | | |__| (_) | | | | | | | __/ (__| |_| | | | | (_| | \____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, | |___/ ____ _ _ ____ _ / ___| |__ __ _| |_| __ ) ___ | |_ ___ | | | '_ \ / _` | __| _ \ / _ \| __/ __| | |___| | | | (_| | |_| |_) | (_) | |_\__ \ \____|_| |_|\__,_|\__|____/ \___/ \__|___/

WECHATY Environment Variables: 1
WECHATY_DOCKER=1

Starting Docker Container for Wechaty v0.73.6 with Node.js v16.10.0 ...

[email protected] start
node index.js

获取环境变量中的 aibotkKey: b603d509ba8ba9cac6c441088f4bee7ed942f383
获取环境变量中的 aibotkSecret: 2b93799e9920bda45e986fb7b29e880ad8cd3d7c
使用环境变量中的 aibotkKey
使用环境变量中的 aibotkSecret
00:07:33 INFO PuppetManager install(wechaty-puppet-wechat@>=0.28) please wait ...
npm: npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated

npm: npm
npm: WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated

npm: npm ERR! code
npm: ERR_SOCKET_TIMEOUT

npm: npm ERR! network Socket timeout

npm: npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm:

npm: npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-21T16_10_21_788Z-debug.log

Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-21T16_10_21_788Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
00:10:22 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-21T16_10_21_788Z-debug.log

错误 Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-21T16_10_21_788Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
00:10:22 WARN Wechaty stop() puppet.stop() exception: Cannot read properties of undefined (reading 'stop')
接口请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递
推送错误成功 Commandfailed:npminstallwechaty-puppet-wechat@>[email protected]:https://github.com/lydell/resolve-url#[email protected]:Pleaseseehttps://github.com/lydell/urix#deprecatednpmERR!codeERR_SOCKET_TIMEOUTnpmERR!networkSockettimeoutnpmERR!networkThisisaproblemrelatedtonetworkconnectivity.npmERR!networkInmostcasesyouarebehindaproxyorhavebadnetworksettings.npmERR!networknpmERR!networkIfyouarebehindaproxy,pleasemakesurethatthenpmERR!network'proxy'configissetproperly.See:'npmhelpconfig'npmERR!Acompletelogofthisruncanbefoundin:npmERR!/bot/.npm/_logs/2021-10-21T16_10_21_788Z-debug.log
npm notice
npm notice New major version of npm available! 7.24.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice


\ \ / /__ | | __ | | _ _
\ \ /\ / / _ / _| ' \ / ` | __| | | |
\ V V / / (| | | | (
| | |
| || |
_/_/ _|_|
| ||_,|_|_, |
|
__/


        https://www.chatie.io

| | () | / _
| | \ / / | | | | | |
| |
> <| | |
| |
| |
|___//__|_| _/

2021/10/22 二维码扫码,接口请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递,EXIT1退出了。

docker日志211022 扫描状态 3 https://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Flogin.weixin.qq.com%2Fl%2Fgb-yOhN-EQ%3D%3D 接口请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递 推送二维码成功 贴心助理Contact<黄天>登录了 更新插件版本号 0.2.12 接口请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递 接口请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递 推送二维码成功 接口请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递 推送错误成功 接口请求失败 请检查apiKey和apiSecret是否填写错误或未正确传递 获取配置文件失败:TypeError: Cannot read properties of undefined (reading 'config') TypeError: Cannot read properties of undefined (reading 'userInfo') at Wechaty.onLogin (/bot/node_modules/wechaty-web-panel/src/handlers/on-login.js:20:27) at runNextTicks (node:internal/process/task_queues:61:5) at processImmediate (node:internal/timers:437:9) npm notice npm notice New major version of npm available! 7.24.0 -> 8.1.1 npm notice Changelog: npm notice Run `npm install -g [email protected]` to update! npm notice

\ \ / /__ | | __ | | _ _
\ \ /\ / / _ / _| ' \ / ` | __| | | |
\ V V / / (| | | | (
| | |
| || |
_/_/ _|_|
| ||_,|_|_, |
|
__/


        https://www.chatie.io

| | () | / |
| | \ / / | | | |
| |
> <| | |
| |
|_____/
/__|_| ||

2021/10/25 08:13:21 INFO PuppetManager install(wechaty-puppet-wechat@>=0.28) please wait ...
npm: npm ERR! code ERR_SOCKET_TIMEOUT

docker日志211025 08:13:21 INFO PuppetManager install(wechaty-puppet-wechat@>=0.28) please wait ... npm: npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! errno ERR_SOCKET_TIMEOUT

npm: npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/@typescript-eslint%2fparser: Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm:

npm: npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-25T00_20_38_620Z-debug.log

Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/@typescript-eslint%2fparser: Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-25T00_20_38_620Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
08:20:38 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/@typescript-eslint%2fparser: Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-25T00_20_38_620Z-debug.log

错误 Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/@typescript-eslint%2fparser: Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-25T00_20_38_620Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
08:20:38 WARN Wechaty stop() puppet.stop() exception: Cannot read properties of undefined (reading 'stop')
接口请求失败 undefined
推送错误成功 Commandfailed:npminstallwechaty-puppet-wechat@>=0.28--no-savenpmERR!codeERR_SOCKET_TIMEOUTnpmERR!errnoERR_SOCKET_TIMEOUTnpmERR!networkInvalidresponsebodywhiletryingtofetchhttps://registry.npmjs.org/@typescript-eslint%2fparser:SockettimeoutnpmERR!networkThisisaproblemrelatedtonetworkconnectivity.npmERR!networkInmostcasesyouarebehindaproxyorhavebadnetworksettings.npmERR!networknpmERR!networkIfyouarebehindaproxy,pleasemakesurethatthenpmERR!network'proxy'configissetproperly.See:'npmhelpconfig'npmERR!Acompletelogofthisruncanbefoundin:npmERR!/bot/.npm/_logs/2021-10-25T00_20_38_620Z-debug.log
npm notice
npm notice New major version of npm available! 7.24.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice

2021/10/25 npm: npm ERR! code 1

npm: npm ERR! path
npm: /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)

完整日志211025 npm: npm ERR! code 1

npm: npm ERR! path
npm: /bot/node_modules/wechaty/node_modules/node-jq

npm: npm
npm: ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm
npm: ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! at TLSSocket.emit (node:events:390:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm
npm: ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm
npm: ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm
npm: ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm:

npm: npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-25T00_38_47_582Z-debug.log

Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint: blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here: standard/standard#1316
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm notice
npm notice New major version of npm available! 7.24.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! at TLSSocket.emit (node:events:390:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-25T00_38_47_582Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
08:38:47 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint: blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here: standard/standard#1316
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm notice
npm notice New major version of npm available! 7.24.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! at TLSSocket.emit (node:events:390:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-25T00_38_47_582Z-debug.log

错误 Error: Command failed: npm install wechaty-puppet-wechat@>=0.28 --no-save
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: TSLint is deprecated, please move to ESLint: blakeembrey/tslint-config-standard#61
npm WARN deprecated [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here: standard/standard#1316
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm notice
npm notice New major version of npm available! 7.24.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 1
npm ERR! path /bot/node_modules/wechaty/node_modules/node-jq
npm ERR! command failed
npm ERR! command sh -c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
npm ERR! GotError [RequestError]: connect ECONNREFUSED 20.205.243.166:443
npm ERR! at ClientRequest. (/bot/node_modules/wechaty/node_modules/got/index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:510:26)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! at TLSSocket.emit (node:events:390:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-linux64',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /bot/.npm/_logs/2021-10-25T00_38_47_582Z-debug.log

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-wechat@>=0.28 --no-save'
}
08:38:47 WARN Wechaty stop() puppet.stop() exception: Cannot read properties of undefined (reading 'stop')
接口请求失败 undefined
推送错误成功 Commandfailed:npminstallwechaty-puppet-wechat@>[email protected]:Pleaseseehttps://github.com/lydell/urix#[email protected]:https://github.com/lydell/resolve-url#[email protected]:thislibraryisnolongersupportednpmWARNdeprecated@hapi/[email protected]:ThisversionhasbeendeprecatedandisnolongersupportedormaintainednpmWARNdeprecated@hapi/[email protected]:Movedto'npminstall@sideway/pinpoint'npmWARNdeprecated@hapi/[email protected]:Movedto'npminstall@sideway/address'npmWARNdeprecated@hapi/[email protected]:Movedto'npminstall@sideway/formula'npmWARNdeprecated@hapi/[email protected]:ThisversionhasbeendeprecatedandisnolongersupportedormaintainednpmWARNdeprecated@hapi/[email protected]:Switchto'npminstalljoi'[email protected]:Pleaseupgradetoversion7orhigher.OlderversionsmayuseMath.random()incertaincircumstances,whichisknowntobeproblematic.Seehttps://v8.dev/blog/[email protected]:requesthasbeendeprecated,seehttps://github.com/request/request/issues/[email protected]:TSLintisdeprecated,pleasemovetoESLint:https://github.com/blakeembrey/tslint-config-standard/issues/[email protected]:standard16.0.0andeslint-config-standard16.0.0nolongerrequiretheeslint-plugin-standardpackage.Youcanremoveitfromyourdependencieswith'npmrmeslint-plugin-standard'.Moreinfohere:https://github.com/standard/standard/issues/[email protected]:babel-eslintisnow@babel/eslint-parser.Thispackagewillnolongerreceiveupdates.npmWARNdeprecatedtslint@6.1.3:TSLinthasbeendeprecatedinfavorofESLint.Pleaseseehttps://github.com/palantir/tslint/issues/4534formoreinformation.npmWARNdeprecated@types/[email protected]:Thisisastubtypesdefinition.dotenvprovidesitsowntypedefinitions,[email protected]:Pleaseupgradetoversion7orhigher.OlderversionsmayuseMath.random()incertaincircumstances,whichisknowntobeproblematic.Seehttps://v8.dev/blog/math-randomfordetails.npmnoticenpmnoticeNewmajorversionofnpmavailable!7.24.0->8.1.1npmnoticeChangelog:https://github.com/npm/cli/releases/tag/v8.1.1npmnoticeRun[email protected]toupdate!npmnoticenpmERR!code1npmERR!path/bot/node_modules/wechaty/node_modules/node-jqnpmERR!commandfailednpmERR!commandsh-cnpmruninstall-binarynpmERR!>[email protected]!>nodescripts/install-binary.jsnpmERR!npmERR!Downloadingjqfromhttps://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64npmERR!GotError[RequestError]:connectECONNREFUSED20.205.243.166:443npmERR!atClientRequest.(/bot/node_modules/wechaty/node_modules/got/index.js:182:22)npmERR!atObject.onceWrapper(node:events:510:26)npmERR!atClientRequest.emit(node:events:390:28)npmERR!atTLSSocket.socketErrorListener(node:_http_client:447:9)npmERR!atTLSSocket.emit(node:events:390:28)npmERR!atemitErrorNT(node:internal/streams/destroy:157:8)npmERR!atemitErrorCloseNT(node:internal/streams/destroy:122:3)npmERR!atprocessTicksAndRejections(node:internal/process/task_queues:83:21){npmERR!code:'ECONNREFUSED',npmERR!host:'github.com',npmERR!hostname:'github.com',npmERR!method:'GET',npmERR!path:'/stedolan/jq/releases/download/jq-1.6/jq-linux64',npmERR!protocol:'https:',npmERR!url:'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'npmERR!}npmERR!Acompletelogofthisruncanbefoundin:npmERR!/bot/.npm/_logs/2021-10-25T00_38_47_582Z-debug.log
npm notice
npm notice New major version of npm available! 7.24.0 -> 8.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.1
npm notice Run npm install -g [email protected] to update!
npm notice

请教:无法使用

拉了docker, 试了我自己的主号(10年), 扫描二维码的时候手机微信说“当前账号无法使用该服务”。
另一个比较新的(3年),扫描二维码确认以后出错:

推送二维码成功
错误 AssertionError [ERR_ASSERTION]: 1 == 0
    at Object.equal (/bot/node_modules/wechat4u/lib/util/global.js:69:24)
    at /bot/node_modules/wechat4u/lib/core.js:227:24
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 2,
  details: 'AssertionError [ERR_ASSERTION]: 1 == 0\n' +
    '    at Object.equal (/bot/node_modules/wechat4u/lib/util/global.js:69:24)\n' +
    '    at /bot/node_modules/wechat4u/lib/core.js:227:24\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:96:5)'
}
推送错误成功 1==0

是缺了什么配置,还是我的微信有问题?需要什么样的微信才能登录?

通过 docker 启动问题

Starting Docker Container for Wechaty v0.68.6 with Node.js v14.18.1 ...

> [email protected] start /bot
> node index.js

使用环境变量中的 aibotkKey
使用环境变量中的 aibotkSecret
默认使用web版微信协议,如无法登录,请检测自己的微信是否能登陆网页版协议
10:59:20 INFO PuppetManager install(wechaty-puppet-wechat@>=0.28) please wait ...
npm: 

npm: npm
npm:  
npm: WARN
npm:  
npm: notsup
npm:  Unsupported engine for [email protected]: wanted: {"node":">=16","npm":">=7"} (current: {"node":"14.18.1","npm":"6.14.15"})

npm: npm
npm:  
npm: WARN
npm:  
npm: notsup
npm:  Not compatible with your version of node/npm: [email protected]

npm: npm
npm:  
npm: WARN
npm:  
npm: notsup
npm:  Unsupported engine for [email protected]: wanted: {"node":">=16","npm":">=7"} (current: {"node":"14.18.1","npm":"6.14.15"})

npm: npm
npm:  
npm: WARN
npm:  
npm: notsup
npm:  Not compatible with your version of node/npm: [email protected]

npm: npm
npm:  
npm: WARN
npm:  
npm: notsup
npm:  Unsupported engine for [email protected]: wanted: {"node":">=16","npm":">=7"} (current: {"node":"14.18.1","npm":"6.14.15"})

npm: npm
npm:  
npm: WARN
npm:  
npm: notsup
npm:  Not compatible with your version of node/npm: [email protected]

npm: npm
npm:  
npm: WARN
npm:  
npm: optional
npm:  SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):

npm: npm
npm:  
npm: WARN
npm:  
npm: notsup
npm:  SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm: npm
npm:  
npm: WARN
npm:  @typescript-eslint/[email protected] requires a peer of @typescript-eslint/parser@^4.0.0 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of tslint@^5.0.0 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of typescript@^2.2.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of wechaty-puppet@^1.10.2 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of wechaty-puppet@^1.10.2 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of gerror@^1.0.8 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of wechaty-puppet@^1.10.2 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of wechaty-puppet@^1.10.2 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of wechaty-puppet@^1.10.2 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of wechaty-puppet@^1.18.3 but none is installed. You must install peer dependencies yourself.

npm: npm
npm:  
npm: WARN
npm:  [email protected] requires a peer of gerror@^1.0.16 but none is installed. You must install peer dependencies yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.