Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【使用教程】wechaty-puppet-xp 协议接入 #65

Open
leochen-g opened this issue Apr 1, 2024 · 0 comments
Open

【使用教程】wechaty-puppet-xp 协议接入 #65

leochen-g opened this issue Apr 1, 2024 · 0 comments

Comments

@leochen-g
Copy link
Owner

如何使用免费的 wechaty-puppet-xp 协议

开始

node 版本必须大于16 否则会出错

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属性

const { WechatyBuilder } = require('wechaty')
const WechatyWebPanelPlugin = require('wechaty-web-panel');

const name = 'wechat-assistant-pro';
let bot = '';


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 login
    puppet: 'wechaty-puppet-xp', // 修改此处为 wechaty-puppet-xp 即可
});


bot.use(
        WechatyWebPanelPlugin({
            apiKey: '智能微秘书平台的apiKey',
            apiSecret: '智能微秘书平台的apiSecret',
        })
    )
bot.start()
    .catch((e) => console.error(e));

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即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant