Files
Sillyv2/core/init.go
T
2021-09-17 07:16:11 +08:00

19 lines
315 B
Go

package core
import "os"
func init() {
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()
initSys()
}