MinatoAquaCrews/nonebot_plugin_what2eat

数据储存问题

kexue-z opened this issue · 2 comments

  • 而不是 resource 因为里面我存着有色图

另外,插件第一次的时候并没有正常的创建 data.jsongreating.json
此时我的配置是(用的yaml)

what2eat_path: data/what2eat
use_preset_menu: true
use_preset_greating: true

插件会报错,FileNotFoundError: [Errno 2] No such file or directory: 'data/what2eat/data.json'

确认一下版本v0.2.6,然后你在自己想要的路径下先创建what2eat文件夹就行🤔
真这么懒下次文件夹我也帮你们创建好吧QAQ

utils.py Line 36添加:

if not path.exists():
    path.mkdir(parents=True, exist_ok=True)

新版本会修复