This commit is contained in:
shoopea 2019-12-18 10:46:04 +08:00
parent 40d0e41f2a
commit 1abdff631a

View File

@ -13,7 +13,7 @@ func startCron() *cron.Cron {
c.AddFunc("15 7,15,23 * * *", cronSendWarReport)
c.AddFunc("58 6,14,22 * * *", cronSetDef)
c.AddFunc("02 1,3,5,9,11,13,17,19,21 * * *", cronHammerTime)
c.AddFunc("10 7,15,23 * * *", cronHammerTime)
c.AddFunc("10 7,15,23 * * *", cronHammerTime)
c.Start()
return c
}
@ -58,7 +58,7 @@ func cronSetDef() {
func cronGetHammerTime() {
clt, err := getLockedRandomClient()
logOnError(err, "cronGetHammerTime")
if err != {
if err != nil {
return
}
clientSendCWMsg(clt.TGUserID64, `/time`, 0)