test
This commit is contained in:
parent
ead8295404
commit
988e0db5fb
4
def.go
4
def.go
@ -78,8 +78,8 @@ type ChatWarsMessageMeAck struct {
|
|||||||
GuildID64 int64 `json:"guild_id"`
|
GuildID64 int64 `json:"guild_id"`
|
||||||
State string `json:"state"`
|
State string `json:"state"`
|
||||||
Level int64 `json:"level"`
|
Level int64 `json:"level"`
|
||||||
ExpVal int64 `json:"exp_val"`
|
ExpNow int64 `json:"exp_now"`
|
||||||
ExpTarget int64 `json:"exp_target"`
|
ExpLvl int64 `json:"exp_lvl"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChatWarsMessageGRolesAck struct {
|
type ChatWarsMessageGRolesAck struct {
|
||||||
|
6
msg.go
6
msg.go
@ -38,11 +38,11 @@ func parseSubTypeMessageMeAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMe
|
|||||||
GuildID64: getObjGuildID(r.ReplaceAllString(m.Text, "${Guild}")),
|
GuildID64: getObjGuildID(r.ReplaceAllString(m.Text, "${Guild}")),
|
||||||
State: r.ReplaceAllString(m.Text, "${State}"),
|
State: r.ReplaceAllString(m.Text, "${State}"),
|
||||||
}
|
}
|
||||||
i, _ := strconv.ParseInt(r.ReplaceAllString(m.Text, "${ExpNow}"), 10, 64)
|
i, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${ExpNow}"), 10, 64)
|
||||||
cwm.ExpNow = i
|
cwm.ExpNow = i
|
||||||
i, _ := strconv.ParseInt(r.ReplaceAllString(m.Text, "${ExpLvl}"), 10, 64)
|
i, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${ExpLvl}"), 10, 64)
|
||||||
cwm.ExpLvl = i
|
cwm.ExpLvl = i
|
||||||
i, _ := strconv.ParseInt(r.ReplaceAllString(m.Text, "${Level}"), 10, 64)
|
i, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Level}"), 10, 64)
|
||||||
cwm.Level = i
|
cwm.Level = i
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user