是否能在wechaty.instance(params)中添加flashstore的路径配置
Created by: sidny
如果是在实体机安装,.wechaty(flash-store)的路径就在命令运行的目录下
如果是在docker环境下,没有把.wechaty mount出来的话,paas类环境进行更新应用时,会recreate 容器,于是.wechaty会丢失 ,造成bot.Room.find({id})行为返回了空的对象,
是否能在wechaty.instance(params)中添加flashstore的路径配置
[enhancement]
// 初始化
const bot = new Wechaty({
memory: new MemoryCard({ name : config.memorypath }),
puppet: new PuppetPadplus({
token: config.token,
flashstore: { name: ".wechaty"} //添加类似memory-card的配置方式
}),
name: config.name
})