From 1abdff631aaf649ba1767de85fb5df6a83ddd50f Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 18 Dec 2019 10:46:04 +0800 Subject: [PATCH] fix cron --- cron.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.go b/cron.go index 8d8ebe0..74024f9 100644 --- a/cron.go +++ b/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)