fix cron
This commit is contained in:
parent
40d0e41f2a
commit
1abdff631a
4
cron.go
4
cron.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user