提交 c9bd367a 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

add doc for how to use MOCK puppet and writing new PUPPET

上级 1e32c7b6
# PUPPET-MOCK
```ts
import PuppetMock from 'wechaty-puppet-mock'
const puppet = new PuppetMock({
profile,
})
const wechaty = new Wechaty({
puppet,
})
```
## HELPER UTILITIES
### StateSwitch
```ts
this.state.on('pending')
this.state.on(true)
this.state.off('pending')
this.state.off(true)
await this.state.ready('on')
await this.state.ready('off')
```
### Watchdog
```ts
```
### Profile
```ts
this.profile.set('config', { id: 1, key: 'xxx' })
const config = await this.profile.get('config')
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册