From 52bd8576e96ee69f74e7c3055901ef85d4d160cb Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Fri, 17 Sep 2021 07:16:11 +0800 Subject: [PATCH] update --- core/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()