Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

无法生成会战报告 #2

Open
homileak opened this issue Jul 25, 2021 · 1 comment
Open

无法生成会战报告 #2

homileak opened this issue Jul 25, 2021 · 1 comment

Comments

@homileak
Copy link

搭建环境:CentOS 7.9_64bit Hoshinobot + Yobot 源码版

[2021-07-26 01:47:06,120 nonebot] INFO: Self: 1816940074, Message 891630123 from 419897935@[群:578647960]: '生成会战报告'
[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

@mahosho
Copy link

mahosho commented Aug 13, 2021

这个问题一般是尚未创建公会或者一刀都没有报过,不报刀yobot的API里是什么数据都不会有的(包括群名称和人名)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants