This commit is contained in:
shoopea 2019-07-08 18:29:23 +08:00
parent 8c050fecdd
commit b8b875748f
3 changed files with 13 additions and 7 deletions

View File

@ -1,7 +1,5 @@
ChirpNestBot ChirpNestBot
- [ ] Check for not launching concurrent msg rescan jobs - [ ] 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) - [ ] Make sure refresh message receives the message later (jobMsgRefresh)
- [ ] Adjust /time clock for auctions/... (delay between cw and real time ?) - [ ] Adjust /time clock for auctions/... (delay between cw and real time ?)
- [ ] Update old auctions with client - [ ] Update old auctions with client
@ -28,6 +26,8 @@ ChirpNestBot
- [x] Test HTML in message - [x] Test HTML in message
- [x] Update auction from broadcast - [x] Update auction from broadcast
- [x] Items parsing/identification - [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 : - Progression :
- 0 -> 4 : Forest + Foray ; - 0 -> 4 : Forest + Foray ;
- 5 -> 10 : Forest + Foray + Arena ; - 5 -> 20 : Forest + Foray + Arena ;

4
def.go
View File

@ -121,7 +121,9 @@ type ChatWarsMessageGRolesAck struct {
} }
type ChatWarsMessageGoQuestAck struct { type ChatWarsMessageGoQuestAck struct {
ObjID64 int64 `json:"obj_id"` ObjID64 int64 `json:"obj_id"`
Quest string `json:"quest"`
Duration time.Duration `json:"duration"`
} }
type ChatWarsMessageDuelFight struct { type ChatWarsMessageDuelFight struct {

10
msg.go
View File

@ -166,9 +166,13 @@ func parseSubTypeMessageGRolesAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageGoQuestAck, error) { func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageGoQuestAck, error) {
cwm := ChatWarsMessageGoQuestAck{} 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 : Go Quest Ack report identified\n")
log.Printf("parseSubTypeMessageGoQuestAck : Time : %s\n", r.ReplaceAllString(m.Text, "${Time}")) 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 return &cwm, nil
} }