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

WARN PuppetPuppeteer #1376

Closed
RobHuang92 opened this issue Jun 21, 2018 · 4 comments
Closed

WARN PuppetPuppeteer #1376

RobHuang92 opened this issue Jun 21, 2018 · 4 comments

Comments

@RobHuang92
Copy link

i run npm install wechaty@next

version "wechaty": "^0.15.220"

init with code

this.robot = Wechaty.instance();
this.robot.start().catch(function(error) {
console.error('启动聊天机器人失败:%s', error)
this.robot.stop()
process.exit(-1)
}.bind(this))

but some warn :

17:20:45 WARN PuppetPuppeteer initWatchdogForPuppet() dog.on(reset) last food:inited, timeout:120000
17:22:47 WARN PuppetPuppeteer initWatchdogForPuppet() dog.on(reset) last food:inited, timeout:120000
17:24:49 WARN PuppetPuppeteer initWatchdogForPuppet() dog.on(reset) last food:inited, timeout:120000
17:26:50 WARN PuppetPuppeteer initWatchdogForPuppet() dog.on(reset) last food:inited, timeout:120000

what should i do ?

@lijiarui
Copy link
Member

Which puppet are you using? puppeteer or puppet-padchat?

@RobHuang92
Copy link
Author

@lijiarui to be honest , i don't know what did i use .
-。-
we init the robot , must have some option? i apply for a token ‘ padchat-token-xxxxxx’ , should i write in optione?
Wechaty.instance({
profile:'?????',
puppet:'puppeteer'/ puppet:'puppet-padchat',
ioToken:'padchat-token-xxxxxx’'
});

@lijiarui
Copy link
Member

lijiarui commented Jun 21, 2018

  1. you are using padchat
  2. You don't need to write in option, just write as follows:
Wechaty.instance({
profile:'you profile',
})

your profile means: once your bot login, wechaty will save your account info in a file called your profile.memory-card.json

  1. start using the following command to run the bot:
WECHATY_PUPPET_PADCHAT_TOKEN=your padchat token WECHATY_PUPPET=padchat   ts-node examples/ding-dong-bot.ts

see more :
#1361

@RobHuang92
Copy link
Author

@lijiarui thx for you answer 。

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

2 participants