mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-17 18:06:06 +00:00
perf: 进行更新时提示耐心等待
This commit is contained in:
@@ -260,6 +260,8 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes
|
|||||||
pkg.utils.context.get_qqbot_manager().notify_admin("更新完成")
|
pkg.utils.context.get_qqbot_manager().notify_admin("更新完成")
|
||||||
|
|
||||||
threading.Thread(target=update_task, daemon=True).start()
|
threading.Thread(target=update_task, daemon=True).start()
|
||||||
|
|
||||||
|
reply = ["[bot]正在更新,请耐心等待,请勿重复发起更新..."]
|
||||||
elif cmd == 'cfg' and launcher_type == 'person' and launcher_id == config.admin_qq:
|
elif cmd == 'cfg' and launcher_type == 'person' and launcher_id == config.admin_qq:
|
||||||
reply = config_operation(cmd, params)
|
reply = config_operation(cmd, params)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user