wechaty/puppet

How can we get the state of the puppet with new API?

hcfw007 opened this issue · 5 comments

Since this.state.on() or this.state.off() no longer works?

huan commented

They have been renamed. Use active / inactive instead

Should puppet implementation manipulate these states?

huan commented

With v1.x , those states is manipulated by the puppet base class and should not be mutated by the child class any more.

You can refer to the puppets which have already upgraded to the v1.x to see the recommended usage.

Cool, thanks for the explanation.

huan commented

You are welcome.