test
This commit is contained in:
parent
8c050fecdd
commit
b8b875748f
@ -1,7 +1,5 @@
|
||||
ChirpNestBot
|
||||
- [ ] Check for not launching concurrent msg rescan jobs
|
||||
- [ ] MQTGCmdWorker[2] : Publishing message.: Exception (504) Reason: "channel/connection is not open" (add check in MQKeepAliveWorker ?)
|
||||
- [ ] Rewrite MQ connection handling for clients/keep alive/msg recv
|
||||
- [ ] Make sure refresh message receives the message later (jobMsgRefresh)
|
||||
- [ ] Adjust /time clock for auctions/... (delay between cw and real time ?)
|
||||
- [ ] Update old auctions with client
|
||||
@ -28,6 +26,8 @@ ChirpNestBot
|
||||
- [x] Test HTML in message
|
||||
- [x] Update auction from broadcast
|
||||
- [x] Items parsing/identification
|
||||
- [x] MQTGCmdWorker[2] : Publishing message.: Exception (504) Reason: "channel/connection is not open" (add check in MQKeepAliveWorker ?)
|
||||
- [x] Rewrite MQ connection handling for clients/keep alive/msg recv
|
||||
- Progression :
|
||||
- 0 -> 4 : Forest + Foray ;
|
||||
- 5 -> 10 : Forest + Foray + Arena ;
|
||||
- 5 -> 20 : Forest + Foray + Arena ;
|
2
def.go
2
def.go
@ -122,6 +122,8 @@ type ChatWarsMessageGRolesAck struct {
|
||||
|
||||
type ChatWarsMessageGoQuestAck struct {
|
||||
ObjID64 int64 `json:"obj_id"`
|
||||
Quest string `json:"quest"`
|
||||
Duration time.Duration `json:"duration"`
|
||||
}
|
||||
|
||||
type ChatWarsMessageDuelFight struct {
|
||||
|
4
msg.go
4
msg.go
@ -166,9 +166,13 @@ func parseSubTypeMessageGRolesAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
||||
|
||||
func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageGoQuestAck, error) {
|
||||
cwm := ChatWarsMessageGoQuestAck{}
|
||||
/*
|
||||
log.Printf("parseSubTypeMessageGoQuestAck : Go Quest Ack report identified\n")
|
||||
log.Printf("parseSubTypeMessageGoQuestAck : Place : %s\n", r.ReplaceAllString(m.Text, "${Place}"))
|
||||
log.Printf("parseSubTypeMessageGoQuestAck : Time : %s\n", r.ReplaceAllString(m.Text, "${Time}"))
|
||||
*/
|
||||
cwm.Quest = strings.ToLower(r.ReplaceAllString(m.Text, "${Place}"))
|
||||
cwm.Duration, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Time}"), 10, 64)
|
||||
return &cwm, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user