Skip to content

Commit

Permalink
🐛 set reply default to first item
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Nov 1, 2023
1 parent efd061f commit 12eb0af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nonebot/adapters/feishu/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ async def _check_reply(bot: "Bot", event: "Event"):
):
event.to_me = True
event.reply = message
return

if not event.reply and len(result.data.items) >= 1:
event.reply = result.data.items[0]

except Exception as e:
log("ERROR", "Failed to get reply message", e)
Expand Down

0 comments on commit 12eb0af

Please sign in to comment.