diff --git a/CHANGELOG.md b/CHANGELOG.md index d275977..953fae6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,3 +63,8 @@ - 添加了 FF14 - 去掉了自己维护的 playwright,转向[nonebot-plugin-htmlrender](https://github.com/kexue-z/nonebot-plugin-htmlrender) - 支持了 nonebot 2.0.0beta + +## [0.5.1] + +- 使用了新的私聊进行群管理的方式 +- 默认关闭自动重发功能 diff --git a/src/plugins/nonebot_bison/plugin_config.py b/src/plugins/nonebot_bison/plugin_config.py index 927dfa4..1a653a1 100644 --- a/src/plugins/nonebot_bison/plugin_config.py +++ b/src/plugins/nonebot_bison/plugin_config.py @@ -12,6 +12,7 @@ class PlugConfig(BaseSettings): bison_filter_log: bool = False bison_to_me: bool = True bison_skip_browser_check: bool = False + bison_resend_times: int = 0 class Config: extra = "ignore" diff --git a/src/plugins/nonebot_bison/send.py b/src/plugins/nonebot_bison/send.py index 1518636..10adaa4 100644 --- a/src/plugins/nonebot_bison/send.py +++ b/src/plugins/nonebot_bison/send.py @@ -42,7 +42,7 @@ async def do_send_msgs(): async def send_msgs(bot: Bot, user, user_type: Literal["private", "group"], msgs: list): if plugin_config.bison_use_queue: for msg in msgs: - QUEUE.append((bot, user, user_type, msg, 2)) + QUEUE.append((bot, user, user_type, msg, plugin_config.bison_resend_times)) else: for msg in msgs: await _do_send(bot, user, user_type, msg)