default not retry

This commit is contained in:
felinae98
2022-03-09 15:03:24 +08:00
parent 1f137624c5
commit 1e2ccb7653
3 changed files with 7 additions and 1 deletions
@@ -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"
+1 -1
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)