Kyomotoi / ATRI

A project for ATRI, use go-cqhttp and Nonebot2.
https://atri.imki.moe
GNU General Public License v3.0
722 stars 87 forks source link

没有打开“使用内置gocqhttp”导致的参数问题 #87

Open SoulGI opened 1 year ago

SoulGI commented 1 year ago

描述问题 | Describe the question 请尽可能地使用简洁语言描述,以方便开发者快速定位重点. 进入虚拟环境运行python main.py报错如下

(atri-py3.8) ubuntu@VM-8-10-ubuntu:~/ATRI$ python main.py Traceback (most recent call last): File "main.py", line 3, in import ATRI File "/home/ubuntu/ATRI/ATRI/init.py", line 13, in conf = conf.parse() File "/home/ubuntu/ATRI/ATRI/configs/config.py", line 38, in parse return ConfigModel.parse_obj(self.config) File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init__ pydantic.error_wrappers.ValidationError: 2 validation errors for ConfigModel WithGoCQHTTP -> accounts -> 0 -> uin value is not a valid integer (type=type_error.integer) WithGoCQHTTP -> accounts -> 0 -> protocol value is not a valid integer (type=type_error.integer)

疑似是因为我没有打开“使用内置gocqhttp”导致的参数问题 (把花括号去了然后装模做样输点数据就能跑了) 这算不算bug()

补充内容 | Additional context 你可以在此添加其它说明.

Kyomotoi commented 1 year ago

应该算 model 设计的不严谨,后续会推送更新以修复)