feat: 更新后不再自动热重载

This commit is contained in:
RockChinQ
2023-11-22 19:08:13 +08:00
parent 75a9a3e9af
commit d7d710ec07
+1 -2
View File
@@ -23,8 +23,7 @@ class UpdateCommand(aamgr.AbstractCommandNode):
def update_task(): def update_task():
try: try:
if pkg.utils.updater.update_all(): if pkg.utils.updater.update_all():
pkg.utils.reloader.reload_all(notify=False) pkg.utils.context.get_qqbot_manager().notify_admin("更新完成, 请手动重启程序。")
pkg.utils.context.get_qqbot_manager().notify_admin("更新完成")
else: else:
pkg.utils.context.get_qqbot_manager().notify_admin("无新版本") pkg.utils.context.get_qqbot_manager().notify_admin("无新版本")
except Exception as e0: except Exception as e0: