mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-31 15:41:34 +08:00
🐛 fix remain space after reply
This commit is contained in:
parent
a5935e77c9
commit
a734790bcf
@ -118,6 +118,9 @@ async def _check_reply(bot: "Bot", event: "Event"):
|
||||
del event.message[index]
|
||||
if len(event.message) > index and event.message[index].type == "at":
|
||||
del event.message[index]
|
||||
if len(event.message) > index and event.message[index].type == "test":
|
||||
event.message[index].data["text"] = event.message[index].data[
|
||||
"text"].strip()
|
||||
if not event.message:
|
||||
event.message.append(MessageSegment.text(""))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user