1st draft for rules for hammer time

This commit is contained in:
shoopea 2019-12-19 11:44:26 +08:00
parent d35077a547
commit a6aaaba62a

2
job.go
View File

@ -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.`,