test
This commit is contained in:
parent
eed93a4c78
commit
3f622a8e2e
8
msg.go
8
msg.go
@ -184,6 +184,8 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
||||
`(🏅Enraged (?P<Enraged>.*))|` +
|
||||
`(?P<Crit>⚡Critical strike)|` +
|
||||
`(Lost\: (?P<Lost>.*))|` +
|
||||
`(You were healed by (?P<Healer>.*))|` +
|
||||
`(You were poisoned by (?P<Poisoner>.*))|` +
|
||||
`.+)`)
|
||||
for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) {
|
||||
if len(re.ReplaceAllString(l[0], "${Cry}")) != 0 {
|
||||
@ -199,7 +201,11 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
||||
} else if len(re.ReplaceAllString(l[0], "${Crit}")) != 0 {
|
||||
// log.Printf("parseSubTypeMessageReport : Extra[%d] : Crit\n", i)
|
||||
} else if len(re.ReplaceAllString(l[0], "${Lost}")) != 0 {
|
||||
log.Printf("parseSubTypeMessageReport : Extra[%d] : Lost :%s \n", i, re.ReplaceAllString(l[0], "${Lost}"))
|
||||
log.Printf("parseSubTypeMessageReport : Extra[%d] : Lost item : %s\n", i, re.ReplaceAllString(l[0], "${Lost}"))
|
||||
} else if len(re.ReplaceAllString(l[0], "${Healer}")) != 0 {
|
||||
log.Printf("parseSubTypeMessageReport : Extra[%d] : Healer : %s\n", i, re.ReplaceAllString(l[0], "${Healer}"))
|
||||
} else if len(re.ReplaceAllString(l[0], "${Poisoner}")) != 0 {
|
||||
log.Printf("parseSubTypeMessageReport : Extra[%d] : Poisoner : %s\n", i, re.ReplaceAllString(l[0], "${Poisoner}"))
|
||||
} else {
|
||||
log.Printf("parseSubTypeMessageReport : Extra[%d] : %s\n", i, l[0])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user