Skip to content

Commit

Permalink
扔漂流瓶支持通过回复的方式
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdaYH committed Dec 9, 2023
1 parent 41f6adc commit 45084ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions nonebot_plugin_bottle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ async def _(
args: Message = CommandArg(),
):
await verify(matcher=matcher, event=event)
if args:
matcher.set_arg("content", args)
message = event.reply.message if event.reply else args
if message:
matcher.set_arg("content", message)
matcher.set_arg("__has_content__", True)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot_plugin_bottle"
version = "2.0.0.2"
version = "2.0.0.3"
description = "Bottle post plugin in Nonebot"
authors = ["Todysheep <[email protected]>"]
license = "GNU GPLv3"
Expand Down

0 comments on commit 45084ed

Please sign in to comment.