update bot hammer time
This commit is contained in:
parent
74e6c40a70
commit
d35077a547
14
job.go
14
job.go
@ -1349,11 +1349,17 @@ func jobGetHammerTime(j Job) {
|
|||||||
rule, err := getMsgParsingRule(msg)
|
rule, err := getMsgParsingRule(msg)
|
||||||
logOnError(err, "jobGetHammerTime : getMsgParsingRule")
|
logOnError(err, "jobGetHammerTime : getMsgParsingRule")
|
||||||
cwm, err := parseSubTypeMessageTimeAck(msg, rule.re)
|
cwm, err := parseSubTypeMessageTimeAck(msg, rule.re)
|
||||||
/*
|
|
||||||
if cwm.State == `🛌Rest` {
|
if cwm.TimeOfDay == `🌙Evening` && cwm.Weather == `🌤` {
|
||||||
clientSendCWMsg(j.UserID64, `🛡Defend`)
|
c := TGCommand{
|
||||||
|
Type: commandSendMsg,
|
||||||
|
Text: `Perfect weather for the next 2 hours.`,
|
||||||
|
ToChatID64: cfg.Bot.Mainchat,
|
||||||
|
ParseMode: cmdParseModeHTML,
|
||||||
}
|
}
|
||||||
*/
|
TGCmdQueue <- c
|
||||||
|
}
|
||||||
|
|
||||||
err = setJobDone(j.ID64)
|
err = setJobDone(j.ID64)
|
||||||
logOnError(err, "jobGetHammerTime : setJobDone")
|
logOnError(err, "jobGetHammerTime : setJobDone")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user