-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
关于如何将ding-dong-bot.ts文件改成满足企业微信的demo #2697
Comments
To adapt the
const options = {
name: 'ding-dong-bot',
puppet: 'wechaty-puppet-wxwork', // WeCom puppet
puppetOptions: {
// corpId: 'YOUR_CORP_ID',
// secret: 'YOUR_SECRET',
}
}
Ensure you have the latest versions of WeChaty and
|
我看原始工程Deome是 企业微信所用到的参数corpId是什么,secret是填写购买的token吗。 然后我没有找到yarn add wechaty-puppet-wxwork,wechaty-puppet-service可以找到对应的依赖。 最后,微信成功把我账号变成机器人,但企业微信不行,还遇到如下问题: |
For integrating WeCom with the To configure your bot for WeCom, ensure you're using import {
WechatyBuilder,
} from 'wechaty';
const options = {
name: 'ding-dong-bot',
puppet: 'wechaty-puppet-wxwork', // Use WeCom puppet
puppetOptions: {
corpId: 'YOUR_CORP_ID', // Your WeCom corpId
secret: 'YOUR_SECRET', // Your WeCom secret
}
};
const bot = WechatyBuilder.build(options);
// Add your bot logic here Replace
|
感谢您的指导,想问下这样的方案是可以把我自己的企业微信账号变成智能回复机器人吗? |
Yes, using To achieve this, ensure your bot's configuration in the For implementing specific bot logic, such as listening and responding to messages, you can refer to the This setup is key to making your WeCom account operate as an intelligent reply bot, leveraging WeChaty's framework and the
|
想再请教下,为何我一直找不到wechaty-puppet-wxwork,npm install wechaty-puppet-wxwork会提示如下 |
The "404 Not Found" error you're encountering when trying to install To address this issue, consider the following steps:
Remember, the situation regarding package availability can change, so it's crucial to rely on the latest information from official sources or directly from the package maintainers.
|
可以具体给个例子吗,只有微信可以顺利使用。
The text was updated successfully, but these errors were encountered: