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

fix memory temporary

上级 76b1e43e
......@@ -25,6 +25,7 @@ import flatten from 'array-flatten'
import {
FileBox,
} from 'file-box'
import { MemoryCard } from 'memory-card'
import Misc from '../misc'
......@@ -192,7 +193,7 @@ export class PuppetPadchat extends Puppet {
}
public async start(): Promise<void> {
log.verbose('PuppetPadchat', `start() with ${this.options.memory.name}`)
log.verbose('PuppetPadchat', `start()`)
if (this.state.on()) {
log.warn('PuppetPadchat', 'start() already on(pending)?')
......@@ -209,7 +210,7 @@ export class PuppetPadchat extends Puppet {
const manager = this.padchatManager = new PadchatManager({
endpoint : this.options.endpoint || WECHATY_PUPPET_PADCHAT_ENDPOINT,
memory : this.options.memory,
memory : this.options.memory || new MemoryCard(),
token : this.options.token || padchatToken(),
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册