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
radishyell opened this Issue Jun 21, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@radishyell
Copy link

radishyell commented Jun 21, 2018

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

This comment has been minimized.

Copy link
Member

lijiarui commented Jun 21, 2018

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

@radishyell

This comment has been minimized.

Copy link

radishyell commented Jun 21, 2018

@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

This comment has been minimized.

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

@radishyell

This comment has been minimized.

Copy link

radishyell commented Jun 22, 2018

@lijiarui thx for you answer 。

@radishyell radishyell closed this Jun 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment