update bot hammer time

This commit is contained in:
shoopea 2019-12-19 11:39:02 +08:00
parent 74e6c40a70
commit d35077a547

14
job.go
View File

@ -1349,11 +1349,17 @@ func jobGetHammerTime(j Job) {
rule, err := getMsgParsingRule(msg)
logOnError(err, "jobGetHammerTime : getMsgParsingRule")
cwm, err := parseSubTypeMessageTimeAck(msg, rule.re)
/*
if cwm.State == `🛌Rest` {
clientSendCWMsg(j.UserID64, `🛡Defend`)
if cwm.TimeOfDay == `🌙Evening` && cwm.Weather == `🌤` {
c := TGCommand{
Type: commandSendMsg,
Text: `Perfect weather for the next 2 hours.`,
ToChatID64: cfg.Bot.Mainchat,
ParseMode: cmdParseModeHTML,
}
*/
TGCmdQueue <- c
}
err = setJobDone(j.ID64)
logOnError(err, "jobGetHammerTime : setJobDone")