mirror of
https://github.com/snowykami/server-status-client.git
synced 2025-01-31 23:11:26 +08:00
✨ 增加客户端启动日志并优化线程启动逻辑
This commit is contained in:
parent
b5ba568a66
commit
48ac46bbb3
@ -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):
|
||||
"""启动监控记录线程"""
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user