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

doc

上级 d0eca076
......@@ -3,7 +3,7 @@
## Connecting ChatBots.
Wechaty is a Bot Framework for Wechat **Personal** Account that helps you easy creating bot in 6 lines of javascript, with cross-platform support to [Docker](https://circleci.com/gh/wechaty/wechaty) [Linux](https://travis-ci.org/wechaty/wechaty), [Win32](https://ci.appveyor.com/project/zixia/wechaty) and [Darwin(OSX/Mac)](https://travis-ci.org/wechaty/wechaty).
Wechaty is a Bot Framework for Wechat **Personal** Account that helps you easy creating bot in 6 lines of javascript, with cross-platform support to [Linux](https://travis-ci.org/wechaty/wechaty), [Win32](https://ci.appveyor.com/project/zixia/wechaty), [Darwin(OSX/Mac)](https://travis-ci.org/wechaty/wechaty) and [Docker](https://circleci.com/gh/wechaty/wechaty).
:octocat: <https://github.com/wechaty/wechaty>
:beetle: <https://github.com/wechaty/wechaty/issues>
......
......@@ -172,7 +172,7 @@ async function onServerDisconnect(this: PuppetWeb, data): Promise<void> {
// if (this.currentState() === 'killing') {
if (this.state.current() === 'dead' && this.state.inprocess()) {
log.verbose('PuppetWebEvent', 'onServerDisconnect() be called when state.current()) is `dead` and inprocess()')
log.verbose('PuppetWebEvent', 'onServerDisconnect() be called when state.current() is `dead` and inprocess()')
return
}
......@@ -237,9 +237,8 @@ function onServerUnload(this: PuppetWeb, data): void {
log.warn('PuppetWebEvent', 'onServerUnload(%s)', data)
// onServerLogout.call(this, data) // XXX: should emit event[logout] from browser
// if (this.currentState() === 'killing') {
if (this.state.current() === 'dead' && this.state.inprocess()) {
log.verbose('PuppetWebEvent', 'onServerUnload() will return because state.current()) is `dead` and inprocess()')
log.verbose('PuppetWebEvent', 'onServerUnload() will return because state.current() is `dead` and inprocess()')
return
}
......
......@@ -113,7 +113,7 @@ export class PuppetWeb extends Puppet {
if (this.state.current() === 'dead' && this.state.inprocess()) {
// log.warn('PuppetWeb', 'quit() is called but readyState is `disconnecting`?')
log.warn('PuppetWeb', 'quit() is called but state.current()) is `dead` and inprocess()?')
log.warn('PuppetWeb', 'quit() is called but state.current() is `dead` and inprocess() ?')
throw new Error('do not call quit again when quiting')
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册