default not retry

This commit is contained in:
felinae98 2022-03-09 15:03:24 +08:00
parent 1f137624c5
commit 1e2ccb7653
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
3 changed files with 7 additions and 1 deletions

View File

@ -63,3 +63,8 @@
- 添加了 FF14
- 去掉了自己维护的 playwright转向[nonebot-plugin-htmlrender](https://github.com/kexue-z/nonebot-plugin-htmlrender)
- 支持了 nonebot 2.0.0beta
## [0.5.1]
- 使用了新的私聊进行群管理的方式
- 默认关闭自动重发功能

View File

@ -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"

View File

@ -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)