Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拉取技能與wiki不一致導致技能查詢結果錯位,同時新增繁中技能查詢 #28

Closed
Yui-xy opened this issue Jul 16, 2022 · 6 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Yui-xy
Copy link

Yui-xy commented Jul 16, 2022

修復前

image

修復后

image
改動代碼
链接:https://pan.baidu.com/s/1GQ49OR3GA_oSQ6Im8DwLqw?pwd=1avm

@azmiao azmiao added the bug Something isn't working label Jul 16, 2022
@azmiao azmiao closed this as completed in 32f2e13 Jul 16, 2022
@azmiao
Copy link
Owner

azmiao commented Jul 16, 2022

已同步到主分支,感谢

@dreamerMJJ
Copy link

更新后查技能出现了这样的报错
[2022-07-18 09:49:31,977 uma_skills] ERROR: 'tw_name_dict'
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\umabot\HoshinoBot-lite-uma\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message
await service_func.func(bot, event)
File "C:\Users\Administrator\Desktop\umabot\HoshinoBot-lite-uma\HoshinoBot\hoshino\modules\uma_plugin\uma_skills_init_.py", line 40, in check_skill
msg = await get_skill_info(skill_name, f_data)
File "C:\Users\Administrator\Desktop\umabot\HoshinoBot-lite-uma\HoshinoBot\hoshino\modules\uma_plugin\uma_skills\generate.py", line 35, in get_skill_info
tw_name_dict = f_data['tw_name_dict']
KeyError: 'tw_name_dict'

@Yui-xy
Copy link
Author

Yui-xy commented Jul 18, 2022

更新后查技能出现了这样的报错 [2022-07-18 09:49:31,977 uma_skills] ERROR: 'tw_name_dict' Traceback (most recent call last): File "C:\Users\Administrator\Desktop\umabot\HoshinoBot-lite-uma\HoshinoBot\hoshino\msghandler.py", line 28, in handle_message await service_func.func(bot, event) File "C:\Users\Administrator\Desktop\umabot\HoshinoBot-lite-uma\HoshinoBot\hoshino\modules\uma_plugin\uma_skills__init__.py", line 40, in check_skill msg = await get_skill_info(skill_name, f_data) File "C:\Users\Administrator\Desktop\umabot\HoshinoBot-lite-uma\HoshinoBot\hoshino\modules\uma_plugin\uma_skills\generate.py", line 35, in get_skill_info tw_name_dict = f_data['tw_name_dict'] KeyError: 'tw_name_dict'

可能是定义有缺损吧,我把我的插件整体打包给你
链接:https://pan.baidu.com/s/1bvu626CelX6l6cPrO_dc8A?pwd=yogm
你对比一下或者整体替换都可以

@azmiao
Copy link
Owner

azmiao commented Jul 18, 2022

啊这,待会我有空看一下吧

@azmiao azmiao reopened this Jul 18, 2022
@azmiao
Copy link
Owner

azmiao commented Jul 18, 2022

测试了一下,手动更新一下马娘技能就行了

@azmiao azmiao added the question Further information is requested label Jul 18, 2022
@dreamerMJJ
Copy link

工作有点忙忘了这边了。。 确实手动更新马娘技能之后就没问题了

@azmiao azmiao closed this as completed Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants