test go quest
This commit is contained in:
parent
d49088de3b
commit
2d94906871
@ -64,7 +64,7 @@ func setClientBusy(userID64 int64, from time.Time, duration time.Duration) error
|
||||
clt.CWBusyUntil = from.UTC().Add(duration)
|
||||
log.Printf("setClientBusy[%s] : set for %s.\n", clt.Login, duration.String())
|
||||
} else {
|
||||
log.Printf("setClientBusy[%s] : not updated (.\n", clt.Login)
|
||||
log.Printf("setClientBusy[%s] : not updated.\n", clt.Login)
|
||||
}
|
||||
clt.Mux.Unlock()
|
||||
return nil
|
||||
|
5
cron.go
5
cron.go
@ -16,6 +16,7 @@ func startCron() *cron.Cron {
|
||||
c.AddFunc("02 1,3,5,9,11,13,17,19,21 * * *", cronGetHammerTime)
|
||||
c.AddFunc("10 7,15,23 * * *", cronGetHammerTime)
|
||||
c.AddFunc("13 3,7,11,15,19,23 * * *", cronTribute)
|
||||
c.AddFunc("@every 1min", cronSaveClients)
|
||||
c.Start()
|
||||
return c
|
||||
}
|
||||
@ -83,3 +84,7 @@ func cronGetHammerTime() {
|
||||
logOnError(err, "cronGetHammerTime : createJobCallback")
|
||||
clientSendCWMsgDelay(clt.TGUserID64, `/time`, 0)
|
||||
}
|
||||
|
||||
func cronSaveClients() {
|
||||
|
||||
}
|
||||
|
4
msg.go
4
msg.go
@ -354,11 +354,11 @@ 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}"))
|
||||
*/
|
||||
|
||||
switch quest := strings.ToLower(r.ReplaceAllString(m.Text, "${Place}")); quest {
|
||||
case "forest":
|
||||
cwm.QuestTypeID64 = cacheObjSubType[`quest_forest`]
|
||||
|
Loading…
Reference in New Issue
Block a user