1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

fix: daemon mode

This commit is contained in:
Madray Haven 2022-11-08 09:46:46 +08:00
parent de44adbfa1
commit 93fa36034a

View File

@ -55,13 +55,14 @@ func Main() {
switch {
case base.LittleH:
base.Help()
case base.LittleWD != "":
case base.LittleD:
server.Daemon()
}
if base.LittleWD != "" {
err := os.Chdir(base.LittleWD)
if err != nil {
log.Fatalf("重置工作目录时出现错误: %v", err)
}
case base.LittleD:
server.Daemon()
}
base.Init()