Skip to content

Commit

Permalink
v1.0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdaYH committed Sep 3, 2023
1 parent 58d0a91 commit 8f85d9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions nonebot_plugin_bottle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,11 @@ async def _(
MessageSegment.reply(message_id)
+ f"您漂流瓶中的换行数量超过了最大换行限制:{maxrt}。您可尝试减少换行数量。\n当前换行数量:{rt_cnt}"
)
else:
if rtrate != 0 and (msg_len / rt_cnt) <= rtrate:
await throw.finish(
MessageSegment.reply(message_id)
+ f"您漂流瓶中的字符换行比率超过了最大字符换行比率限制。\n字符换行比率,是您发送的漂流瓶总字符数量和换行的比值。为了防止刷屏,请您尝试减少漂流瓶的换行数量或增加有意义漂流瓶字符。"
)
if rtrate != 0 and (msg_len / rt_cnt) <= rtrate:
await throw.finish(
MessageSegment.reply(message_id)
+ "您漂流瓶中的字符换行比率超过了最大字符换行比率限制。\n字符换行比率,是您发送的漂流瓶总字符数量和换行的比值。为了防止刷屏,请您尝试减少漂流瓶的换行数量或增加有意义漂流瓶字符。"
)
audit = await text_audit(text=message_text)
if not audit == "pass":
if audit == "Error":
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 = "1.0.1.8"
version = "1.0.1.9"
description = "Bottle post plugin in Nonebot"
authors = ["Todysheep <[email protected]>"]
license = "GNU GPLv3"
Expand Down

0 comments on commit 8f85d9e

Please sign in to comment.