You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ WechatyBuilder }=require('wechaty')constWechatyWebPanelPlugin=require('wechaty-web-panel');constname='wechat-assistant-pro';letbot='';console.log('默认使用web版微信协议,如无法登录,请检测自己的微信是否能登陆网页版协议,如需ipad协议登录,请查看https://github.com/leochen-g/wechat-assistant-pro-ipad')bot=WechatyBuilder.build({
name,// generate xxxx.memory-card.json and save login data for the next loginpuppet: 'wechaty-puppet-xp',// 修改此处为 wechaty-puppet-xp 即可});bot.use(WechatyWebPanelPlugin({apiKey: '智能微秘书平台的apiKey',apiSecret: '智能微秘书平台的apiSecret',}))bot.start().catch((e)=>console.error(e));
如何使用免费的 wechaty-puppet-xp 协议
开始
1、你需要一台windows 系统的电脑,最好是win10 或者win11,win7 在node安装的时候会有问题
2、下载安装
wechaty-puppet-xp
提供的指定微信安装包 下载链接 WeChatSetup-v3.3.0.115.exe(已有最新版,可以自己去 wechaty 仓库查找一下)3、在智能微秘书客户端根目录执行
npm install wechaty-puppet-xp
4、修改
src/index.js
文件中的puppet
属性5、启动项目即可,如果遇到报错,建议先到wechaty-puppet-xp的issues中寻找解决办法
win7使用puppet-xp, node版本使用v16报错?
(感谢微信群友 @清风绕树 提供)
因为win7 最高支持Node.js 13.14
所以想要使用v16需要做一些特殊配置
具体参考链接: https://blog.csdn.net/qq_45637260/article/details/124006058
使用puppet-xp,报错提示图片找不到,类似下图
只需要在项目根目录
docs/images/
中放一个任意png
图片,并命名为wechaty-icon.png
即可The text was updated successfully, but these errors were encountered: