Open homileak opened 3 years ago
搭建环境:CentOS 7.9_64bit Hoshinobot + Yobot 源码版
[2021-07-26 01:47:06,121 公会战报告书] INFO: Message 891630123 triggered create_resignation_report. [2021-07-26 01:47:06,128 公会战报告书] ERROR: <class 'KeyError'> occured when create_resignation_report handling message 891630314. [2021-07-26 01:47:06,128 公会战报告书] ERROR: 'groupinfo' Traceback (most recent call last): File "/root/pcrbot/HoshinoBot/hoshino/msghandler.py", line 28, in handle_message await service_func.func(bot, event) File "/root/pcrbot/HoshinoBot/hoshino/modules/clanbattlereport/init.py", line 74, in create_resignation_report clanname = data['groupinfo'][0]['group_name'] KeyError: 'groupinfo' [2021-07-26 01:47:06,129 nonebot] INFO: Message 891630123 is ignored: Handled by Hoshino
这个问题一般是尚未创建公会或者一刀都没有报过,不报刀yobot的API里是什么数据都不会有的(包括群名称和人名)
搭建环境:CentOS 7.9_64bit Hoshinobot + Yobot 源码版
[2021-07-26 01:47:06,121 公会战报告书] INFO: Message 891630123 triggered create_resignation_report. [2021-07-26 01:47:06,128 公会战报告书] ERROR: <class 'KeyError'> occured when create_resignation_report handling message 891630314. [2021-07-26 01:47:06,128 公会战报告书] ERROR: 'groupinfo' Traceback (most recent call last): File "/root/pcrbot/HoshinoBot/hoshino/msghandler.py", line 28, in handle_message await service_func.func(bot, event) File "/root/pcrbot/HoshinoBot/hoshino/modules/clanbattlereport/init.py", line 74, in create_resignation_report clanname = data['groupinfo'][0]['group_name'] KeyError: 'groupinfo' [2021-07-26 01:47:06,129 nonebot] INFO: Message 891630123 is ignored: Handled by Hoshino