Fix at messages with suffixed text

This commit is contained in:
LambdaYH
2022-08-21 21:58:31 +08:00
parent db1f4b2b52
commit c466603193
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -33,8 +33,10 @@ async def _(event: MessageEvent):
for seg in event.message:
if seg.type == 'at':
temp += f"[at:{seg.data['qq']}]"
else:
elif isinstance(seg, str):
temp += seg
elif seg.type == 'text':
temp += seg.data["text"]
problem = temp
elif text:
problem = text