修正图片判断条件
This commit is contained in:
parent
65027933f7
commit
efa1b3bd3d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import os
|
||||||
|
|
||||||
class RIICReportAnalysis:
|
class RIICReportAnalysis:
|
||||||
async def group_message(self, chain: MessageChain):
|
async def group_message(self, chain: MessageChain):
|
||||||
if len(chain) != 1:
|
if len(chain) != 1 or len(chain.images) != 1:
|
||||||
return
|
return
|
||||||
img_seg: Image = chain[0]
|
img_seg: Image = chain[0]
|
||||||
img_path = await img_seg.download()
|
img_path = await img_seg.download()
|
||||||
|
|
Loading…
Reference in a new issue