update g_stock

This commit is contained in:
shoopea 2019-12-14 15:01:15 +08:00
parent cb66651b84
commit cf48230849

3
job.go
View File

@ -721,6 +721,7 @@ func jobGStock(j Job) {
logOnError(err, "jobGStock : createJob")
setJobCallback(jobID64, j.UserID64, objSubTypeMessageGStockAnyAck)
setJobCallback(jobID64, j.UserID64, objSubTypeMessageBusy)
setJobCallback(jobID64, j.UserID64, objSubTypeMessageBattle)
err = setJobTimeout(jobID64, 1*time.Minute)
logOnError(err, "jobGStock : setJobTimeout")
clientSendCWMsg(cfg.Bot.Admin, "/g_stock_res")
@ -739,7 +740,7 @@ func jobGStock(j Job) {
err = createJobCallback(objSubTypeJobGStock, j.UserID64, objSubTypeMessageGStockAnyAck, b, 1*time.Minute)
logOnError(err, "jobGStock : createJobCallback")
clientSendCWMsg(cfg.Bot.Admin, "/g_stock_alch")
} else if rule.MsgTypeID == objSubTypeMessageBusy {
} else if rule.MsgTypeID == objSubTypeMessageBusy || rule.MsgTypeID == objSubTypeMessageBattle {
m := TGCommand{
Type: commandReplyMsg,
Text: "Busy, please retry later.",