Skip to content

Commit

Permalink
🐛 ensure event.to_me is set
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Oct 24, 2023
1 parent cacd4b6 commit 6b9cb80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nonebot/adapters/feishu/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ def _is_at_me_seg(segment: MessageSegment) -> bool:
last_msg_seg = message[i]

if _is_at_me_seg(last_msg_seg):
deleted = True
del message[i:]
deleted = True
event.to_me = True

if not message:
message.append(MessageSegment.text(""))
Expand Down

0 comments on commit 6b9cb80

Please sign in to comment.