debug g roles
This commit is contained in:
parent
99a65c59ba
commit
d359adaadf
10
msg.go
10
msg.go
@ -150,12 +150,12 @@ func parseSubTypeMessageGRolesAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
||||
} else {
|
||||
cwm.TreasurerID64 = 0
|
||||
}
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Guild roles Ack identified\n")
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Bartender : %s\n", r.ReplaceAllString(m.Text, "${Bartender}"))
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Commander : %s\n", r.ReplaceAllString(m.Text, "${Commander}"))
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Squire : %s\n", r.ReplaceAllString(m.Text, "${Squire}"))
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Treasurer : %s\n", r.ReplaceAllString(m.Text, "${Treasurer}"))
|
||||
/*
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Guild roles Ack identified\n")
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Bartender : %s\n", r.ReplaceAllString(m.Text, "${Bartender}"))
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Commander : %s\n", r.ReplaceAllString(m.Text, "${Commander}"))
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Squire : %s\n", r.ReplaceAllString(m.Text, "${Squire}"))
|
||||
log.Printf("parseSubTypeMessageGRolesAck : Treasurer : %s\n", r.ReplaceAllString(m.Text, "${Treasurer}"))
|
||||
log.Printf("cwm.BartenderID64 : %d\n", cwm.BartenderID64)
|
||||
log.Printf("cwm.CommanderID64 : %d\n", cwm.CommanderID64)
|
||||
log.Printf("cwm.SquireID64 : %d\n", cwm.SquireID64)
|
||||
|
9
rules.go
9
rules.go
@ -155,7 +155,14 @@ func resetMsgParsingRules() {
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageGoQuestAck) + `, "Go Quest Ack Mountain", "^(?P<Place>[a-zA-Z ']+) can be a dangerous place. You decided to investigate, what's going on. You'll be back in (?P<Time>[0-9]+) minutes.$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageGoQuestAck) + `, "Go Quest Ack Devil's Valley", "^You went to the (?P<Place>[a-zA-Z ']+). Don't lose your soul. Back in (?P<Time>[0-9]+) minutes$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageGRolesReq) + `, "Guild roles Req", "^/g_roles$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageGRolesAck) + `, "Guild roles Req", "^Roles:\\nBartender:\\n(?P<Bartender>.*)\\n\\n\\nCommander:\\n(?P<Commander>.*)\\n\\n\\nSquire:\\n(?P<Squire>.*)\\n\\n\\nTreasurer:\\n(?P<Treasurer>.*)$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageGRolesAck) + `, "Guild roles Req", "^Roles:\\nBartender:\\n` +
|
||||
`((⚗️|⚔️|⚒)(?P<Bartender>.*)|\[unassigned\])\\n\\n\\n` +
|
||||
`Commander:\\n` +
|
||||
`((⚗️|⚔️|⚒)(?P<Commander>.*)|\[unassigned\])\\n\\n\\n` +
|
||||
`Squire:\\n` +
|
||||
`((⚗️|⚔️|⚒)(?P<Squire>.*)|\[unassigned\])\\n\\n\\n` +
|
||||
`Treasurer:\\n` +
|
||||
`((⚗️|⚔️|⚒)(?P<Treasurer>.*)|\[unassigned\])$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageGStockReq) + `, "Guild stock Req", "^/g_stock$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageGStockAck) + `, "Guild stock Ack", "^Grouped by:\\n` +
|
||||
`/g_stock_res - resources\\n` +
|
||||
|
Loading…
Reference in New Issue
Block a user