Revert "调整插件执行模式并修复全球新闻后台线程"

This reverts commit adbf4471cf.
This commit is contained in:
Liu
2026-05-01 12:45:33 +08:00
parent bb65c465e7
commit 08db0ea07e
10 changed files with 19 additions and 183 deletions

View File

@@ -3,12 +3,4 @@ enable = true
commands = ["更新系统", "系统更新", "重启系统", "更新重启"]
wait_time = 5
# 设置管理员微信ID只有这些ID可以执行更新操作
shell_path= "/home/liuwei/abot/restart.sh"
[runtime]
# 系统更新属于典型后台维护任务:
# 1. 命令命中后会执行重启脚本,整个过程可能持续几十秒到数分钟;
# 2. 这类任务不应该长期占住前台消息并发槽位,否则会影响其他插件收消息;
# 3. 因此默认切到后台执行,并把总超时放宽到 10 分钟。
message_dispatch_mode = "background"
plugin_process_timeout_seconds = 600
shell_path= "/home/liuwei/abot/restart.sh"