From a6aaaba62ae3f8a1a9c1d590c439db42223fad15 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 19 Dec 2019 11:44:26 +0800 Subject: [PATCH] 1st draft for rules for hammer time --- job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job.go b/job.go index 3442842..92dfd8e 100644 --- a/job.go +++ b/job.go @@ -1350,7 +1350,7 @@ func jobGetHammerTime(j Job) { logOnError(err, "jobGetHammerTime : getMsgParsingRule") cwm, err := parseSubTypeMessageTimeAck(msg, rule.re) - if cwm.TimeOfDay == `🌙Evening` && cwm.Weather == `🌤` { + if (cwm.TimeOfDay == `🌞Morning` && cwm.Weather == `🌧`) || (cwm.TimeOfDay == `🌙Evening` && cwm.Weather == `🌤`) || (cwm.TimeOfDay == `🌙Night` && cwm.Weather == `☀`) { c := TGCommand{ Type: commandSendMsg, Text: `Perfect weather for the next 2 hours.`,