1st draft for rules for hammer time
This commit is contained in:
parent
d35077a547
commit
a6aaaba62a
2
job.go
2
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.`,
|
||||
|
Loading…
Reference in New Issue
Block a user