增加客户端启动日志并优化线程启动逻辑
Some checks failed
Compile / build (x64, windows-latest) (push) Failing after 43s
Compile / build (x64, ubuntu-latest) (push) Failing after 2m8s

This commit is contained in:
远野千束(神羽) 2024-12-09 00:26:16 +08:00
parent b5ba568a66
commit 48ac46bbb3
2 changed files with 5 additions and 1 deletions

View File

@ -191,8 +191,12 @@ class Client:
)
def start(self):
log("Starting client")
threading.Thread(target=self._start_obs, daemon=True).start()
threading.Thread(target=self._start_post, daemon=True).start()
while True:
time.sleep(1)
def _start_obs(self):
"""启动监控记录线程"""

View File

@ -3,7 +3,7 @@ import socket
from arclet.alconna import Alconna, Subcommand, Option, Args, MultiVar
server_status_alc = Alconna(
server_status_alc = Alconna( # type: ignore
"server_status",
Args["server", str]["token", str]["id", str],
Subcommand(