test
This commit is contained in:
parent
9772c0fe4a
commit
d4111c7842
16
msg.go
16
msg.go
@ -66,6 +66,22 @@ func parseSubTypeMessageGRolesAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
|||||||
SquireID64: getObjUserID(r.ReplaceAllString(m.Text, "${Squire}")),
|
SquireID64: getObjUserID(r.ReplaceAllString(m.Text, "${Squire}")),
|
||||||
TreasurerID64: getObjUserID(r.ReplaceAllString(m.Text, "${Treasurer}")),
|
TreasurerID64: getObjUserID(r.ReplaceAllString(m.Text, "${Treasurer}")),
|
||||||
*/
|
*/
|
||||||
|
if strings.compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Bartender}")) != 0 {
|
||||||
|
s := r.ReplaceAllString(m.Text, "${Bartender}")
|
||||||
|
cwm.BartenderID64 = getObjUserID(s[1:])
|
||||||
|
}
|
||||||
|
if strings.compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Commander}")) != 0 {
|
||||||
|
s := r.ReplaceAllString(m.Text, "${Commander}")
|
||||||
|
cwm.CommanderID64 = getObjUserID(s[1:])
|
||||||
|
}
|
||||||
|
if strings.compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Squire}")) != 0 {
|
||||||
|
s := r.ReplaceAllString(m.Text, "${Bartender}")
|
||||||
|
cwm.SquireID64 = getObjUserID(s[1:])
|
||||||
|
}
|
||||||
|
if strings.compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Treasurer}")) != 0 {
|
||||||
|
s := r.ReplaceAllString(m.Text, "${Bartender}")
|
||||||
|
cwm.TreasurerID64 = getObjUserID(s[1:])
|
||||||
|
}
|
||||||
log.Printf("parseSubTypeMessageGRolesAck : Guild roles Ack identified\n")
|
log.Printf("parseSubTypeMessageGRolesAck : Guild roles Ack identified\n")
|
||||||
log.Printf("parseSubTypeMessageGRolesAck : Bartender : %s\n", r.ReplaceAllString(m.Text, "${Bartender}"))
|
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 : Commander : %s\n", r.ReplaceAllString(m.Text, "${Commander}"))
|
||||||
|
Loading…
Reference in New Issue
Block a user