update
This commit is contained in:
+2
-1
@@ -3,13 +3,14 @@ package core
|
|||||||
import "os"
|
import "os"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
initStore()
|
|
||||||
killp()
|
killp()
|
||||||
for _, arg := range os.Args {
|
for _, arg := range os.Args {
|
||||||
if arg == "-d" {
|
if arg == "-d" {
|
||||||
|
initStore()
|
||||||
Daemon()
|
Daemon()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
initStore()
|
||||||
ReadYaml(ExecPath+"/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/conf/demo_config.yaml")
|
ReadYaml(ExecPath+"/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/conf/demo_config.yaml")
|
||||||
InitReplies()
|
InitReplies()
|
||||||
initToHandleMessage()
|
initToHandleMessage()
|
||||||
|
|||||||
Reference in New Issue
Block a user