This commit is contained in:
shoopea 2019-05-26 21:07:28 +08:00
parent 01df375e0a
commit 41a51fd7f5
2 changed files with 3 additions and 3 deletions

2
bot.go
View File

@ -287,7 +287,7 @@ func botTimer(m *tb.Message) {
log.Printf("Timer : Event : %s\n", time.Now().Add(d).Format(time.RFC850)) log.Printf("Timer : Event : %s\n", time.Now().Add(d).Format(time.RFC850))
c := TGCommand{ c := TGCommand{
Type: commandSendMsg, Type: commandSendMsg,
Text: "", r.ReplaceAllString(m.Payload, "${Msg}"), Text: r.ReplaceAllString(m.Payload, "${Msg}"),
FromUserID64: m.Chat.ID, FromUserID64: m.Chat.ID,
ToChatID64: userID64ChtWrsBot, ToChatID64: userID64ChtWrsBot,
} }

2
job.go
View File

@ -131,7 +131,7 @@ func jobMsgClient(j Job) {
MQTGCmdQueue <- c MQTGCmdQueue <- c
err := setJobDone(j.ID64) err = setJobDone(j.ID64)
logOnError(err, "joMsgClient : setJobDone") logOnError(err, "joMsgClient : setJobDone")
return return
} }