diff --git a/bot.go b/bot.go index 25517c0..c58f189 100644 --- a/bot.go +++ b/bot.go @@ -133,5 +133,4 @@ func botMsgRescanAll(m *tb.Message) (string, error) { } else { return "Rescaning all msg scheduled", nil } - return "/msg_rescan msg_id or /msg_rescan all", nil } diff --git a/def.go b/def.go index 474e610..24bf7df 100644 --- a/def.go +++ b/def.go @@ -34,10 +34,11 @@ type ChatWarsMessageMiniWar struct { } type ChatWarsMessageMiniWarCastle struct { - Result string `json:"result"` - Gold int32 `json:"gold"` - Stock int32 `json:"stock"` - Points int32 `json:"points"` + Gardian string `json:"gardian"` + Result string `json:"result"` + Gold int32 `json:"gold"` + Stock int32 `json:"stock"` + Points int32 `json:"points"` } type MessageParsingRule struct { diff --git a/sql.go b/sql.go index 1706031..4d4d01c 100644 --- a/sql.go +++ b/sql.go @@ -1242,7 +1242,7 @@ func resetMsgParsingRules() { ,(5000, ` + strconv.Itoa(objSubTypeMessageAuctionAnnounce) + `, "Auction annouce", "^Lot #(?P[0-9]+) : (?P.*)\\n(Quality: (?P.*)\\n){0,1}(Condition: (?P.*)\\n){0,1}Seller: (?P.*)\\nCurrent price: (?P[0-9]+) pouch\\(es\\)\\nBuyer: (?P.*)\\nEnd At: (?P.*)\\nStatus: (?P.*)(\\n)*(?s:.*)") ,(5000, ` + strconv.Itoa(objSubTypeMessageTimeAck) + `, "Time", "^In Chat Wars world now\\n(?P