mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 17:15:05 +08:00
commit
30b839d736
@ -116,6 +116,8 @@ async def _check_reply(bot: "Bot", event: "Event"):
|
|||||||
if str(event.reply["sender"]["user_id"]) == str(event.self_id):
|
if str(event.reply["sender"]["user_id"]) == str(event.self_id):
|
||||||
event.to_me = True
|
event.to_me = True
|
||||||
del event.message[index]
|
del event.message[index]
|
||||||
|
if len(event.message) > index and event.message[index].type == "at":
|
||||||
|
del event.message[index]
|
||||||
if not event.message:
|
if not event.message:
|
||||||
event.message.append(MessageSegment.text(""))
|
event.message.append(MessageSegment.text(""))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user