This commit is contained in:
cdle
2021-09-17 07:10:14 +08:00
parent d7be38dcf4
commit 57611764ae
4 changed files with 19 additions and 14 deletions
+17
View File
@@ -0,0 +1,17 @@
package core
import "os"
func init() {
initStore()
killp()
for _, arg := range os.Args {
if arg == "-d" {
Daemon()
}
}
ReadYaml(ExecPath+"/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/conf/demo_config.yaml")
InitReplies()
initToHandleMessage()
initSys()
}