diff --git a/core/init.go b/core/init.go index eab7bb3..b774ec9 100644 --- a/core/init.go +++ b/core/init.go @@ -3,13 +3,14 @@ package core import "os" func init() { - initStore() killp() for _, arg := range os.Args { if arg == "-d" { + initStore() Daemon() } } + initStore() ReadYaml(ExecPath+"/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/conf/demo_config.yaml") InitReplies() initToHandleMessage()