This commit is contained in:
cdle
2021-10-04 20:28:05 +08:00
parent 9a9286af5b
commit 4b4515a12b
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func (ct *Chat) Push(content interface{}) {
} }
func NotifyMasters(content string) { func NotifyMasters(content string) {
if sillyGirl.GetBool("ignore_notify", true) == true { if sillyGirl.GetBool("ignore_notify", false) == true {
return return
} }
for _, class := range []string{"tg", "qq"} { for _, class := range []string{"tg", "qq"} {
+3 -3
View File
@@ -17,9 +17,9 @@ func init() {
if v != "" { if v != "" {
vv := strings.Split(v, " ") vv := strings.Split(v, " ")
tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2]) tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2])
if tp == "fake" && sillyGirl.GetBool("update_notify", false) == true { // if tp == "fake" { //&& sillyGirl.GetBool("update_notify", false) == true { //
time.Sleep(time.Second * 10) // time.Sleep(time.Second * 10)
NotifyMasters("自动更新完成。") // NotifyMasters("自动更新完成。")
return return
} }
msg := "重启完成。" msg := "重启完成。"