fixes for alch stuff
This commit is contained in:
parent
916a42aca7
commit
d3ce990651
2
bot.go
2
bot.go
@ -946,7 +946,7 @@ func botAlchAll(m *ChatWarsMessage) {
|
|||||||
|
|
||||||
b, _ := json.Marshal(p)
|
b, _ := json.Marshal(p)
|
||||||
t := time.Now().UTC().Add(1 * time.Second)
|
t := time.Now().UTC().Add(1 * time.Second)
|
||||||
_, err = createJob(cacheObjSubType[`job_alch_all`], objJobPriority, userID64, 0, t, b)
|
_, err := createJob(cacheObjSubType[`job_alch_all`], objJobPriority, j.userID64, 0, t, b)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
|
2
def.go
2
def.go
@ -591,7 +591,7 @@ type JobPayloadAlchAll struct {
|
|||||||
ChatID64 int64 `json:"chat_id"`
|
ChatID64 int64 `json:"chat_id"`
|
||||||
Status int64 `json:"status"`
|
Status int64 `json:"status"`
|
||||||
Mana int64 `json:"mana"`
|
Mana int64 `json:"mana"`
|
||||||
MaxMana int64 `json:"max_mana"`
|
ManaMax int64 `json:"mana_max"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type JobPayloadCheckVaultLimit struct {
|
type JobPayloadCheckVaultLimit struct {
|
||||||
|
2
job.go
2
job.go
@ -2053,7 +2053,7 @@ func jobAlchAll(j Job) {
|
|||||||
m, err := getObjMsg(j.Trigger)
|
m, err := getObjMsg(j.Trigger)
|
||||||
logOnError(err, "jobAlchAll : getObjMsg("+strconv.FormatInt(j.Trigger, 10)+")")
|
logOnError(err, "jobAlchAll : getObjMsg("+strconv.FormatInt(j.Trigger, 10)+")")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
rule, err := getMsgParsingRule(&m)
|
rule, err := getMsgParsingRule(m)
|
||||||
logOnError(err, "jobAlchAll : getMsgParsingRule")
|
logOnError(err, "jobAlchAll : getMsgParsingRule")
|
||||||
if rule.MsgTypeID64 == cacheObjSubType[`msg_me_ack`] {
|
if rule.MsgTypeID64 == cacheObjSubType[`msg_me_ack`] {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user