This commit is contained in:
shoopea 2019-06-02 17:40:13 +08:00
parent 81fd07cb4f
commit 2000c727ba
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
ChirpNestBot
- [ ] Eliminate cache map race conditions (all maps with read/write)
- [ ] Client de-registration announce
- [ ] Items parsing/identification
- [ ] Auto identificate weight of items
@ -13,4 +14,4 @@ ChirpNestBot
- [ ] Experience graphs & forecast
- [ ] Impersonate
- [x] Foray interception
- [x] Eliminate cache map race conditions

3
msg.go
View File

@ -32,7 +32,8 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageStock, error) {
cwm := ChatWarsMessageStock{}
log.Printf("parseSubTypeMessageReport : GStock Any Ack identified\n")
log.Printf("parseSubTypeMessageGStockAnyAck : GStock Any Ack identified\n")
log.Printf("parseSubTypeMessageGStockAnyAck : Stock : %s\n", r.ReplaceAllString(m.Text, "${Stock}"))
re := regexp.MustCompile(`(\\n[0-9a-z]+ .* x [0-9]+)`)
for s := range re.FindAllString(r.ReplaceAllString(m.Text, "${Stock}"), -1) {
log.Printf("parseSubTypeMessageGStockAnyAck : %s\n", s)