Files
abot/plugins/system_updater/config.toml

15 lines
637 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[SystemUpdater]
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