typing change, use enum instead of string, fix typo

This commit is contained in:
UnCLASPrommer
2025-07-14 23:40:09 +08:00
parent 8a32ae8ab9
commit eae399fb95
7 changed files with 28 additions and 31 deletions

View File

@@ -110,16 +110,16 @@ class ReplyAction(BaseAction):
# 构建回复文本
reply_text = ""
first_replyed = False
first_replied = False
for reply_seg in reply_set:
data = reply_seg[1]
if not first_replyed:
if not first_replied:
if need_reply:
await self.send_text(content=data, reply_to=self.action_data.get("reply_to", ""), typing=False)
first_replyed = True
first_replied = True
else:
await self.send_text(content=data, typing=False)
first_replyed = True
first_replied = True
else:
await self.send_text(content=data, typing=True)
reply_text += data