update msg rules
This commit is contained in:
parent
2eea76d6fd
commit
12b700e118
2
def.go
2
def.go
@ -544,6 +544,8 @@ const (
|
|||||||
objSubTypeMessageGoArenaAck = 400 // Welcome to Arena! (done)
|
objSubTypeMessageGoArenaAck = 400 // Welcome to Arena! (done)
|
||||||
objSubTypeMessageWithdrawNAck = 401 // not enought items (done)
|
objSubTypeMessageWithdrawNAck = 401 // not enought items (done)
|
||||||
objSubTypeMessagePillageDefeat = 402 // You tried stopping (done)
|
objSubTypeMessagePillageDefeat = 402 // You tried stopping (done)
|
||||||
|
objSubTypeMessageLevelUpReq = 403 // /level_up
|
||||||
|
objSubTypeMessageLevelUpAck = 404
|
||||||
objSubTypeJobPillage = 601
|
objSubTypeJobPillage = 601
|
||||||
objSubTypeJobTribute = 602
|
objSubTypeJobTribute = 602
|
||||||
objSubTypeJobStatus = 603
|
objSubTypeJobStatus = 603
|
||||||
|
4
rules.go
4
rules.go
@ -391,6 +391,10 @@ func resetMsgParsingRules() {
|
|||||||
`Fastest-growing: /top6\\n\\n` +
|
`Fastest-growing: /top6\\n\\n` +
|
||||||
`Entrance fee: 5💰$")
|
`Entrance fee: 5💰$")
|
||||||
,(5000, ` + strconv.Itoa(objSubTypeMessageWithdrawNAck) + `, "Withdraw NAck", "^Not enough items on guild stock$")
|
,(5000, ` + strconv.Itoa(objSubTypeMessageWithdrawNAck) + `, "Withdraw NAck", "^Not enough items on guild stock$")
|
||||||
|
,(5000, ` + strconv.Itoa(objSubTypeMessageLevelUpReq) + `, "Level Up Req", "^/level_up$")
|
||||||
|
,(5000, ` + strconv.Itoa(objSubTypeMessageLevelUpAck) + `, "Level Up Ack #1", "^Choose what you would like to improve 💡 ((?P<Points>[0-9]+) points)$")
|
||||||
|
,(5000, ` + strconv.Itoa(objSubTypeMessageLevelUpAck) + `, "Level Up Ack #2", "^You have (?P<SPs>[0-9]+) sp. What to improve?🤔\\n` +
|
||||||
|
`(?s:.*)Learned skills: /class$")
|
||||||
|
|
||||||
;`)
|
;`)
|
||||||
failOnError(err, "resetMsgParsingRules : populate table msg_rules")
|
failOnError(err, "resetMsgParsingRules : populate table msg_rules")
|
||||||
|
2
sql.go
2
sql.go
@ -556,6 +556,8 @@ func initDB() {
|
|||||||
,(` + strconv.Itoa(objSubTypeMessageGoArenaAck) + `, "go_arena_ack", "Go Arena Ack", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageGoArenaAck) + `, "go_arena_ack", "Go Arena Ack", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessageWithdrawNAck) + `, "withdraw_nack", "Withdraw NAck", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageWithdrawNAck) + `, "withdraw_nack", "Withdraw NAck", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessagePillageDefeat) + `, "pillage_defeat", "Pillage Defeat", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessagePillageDefeat) + `, "pillage_defeat", "Pillage Defeat", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
|
,(` + strconv.Itoa(objSubTypeMessageLevelUpReq) + `, "level_up_req", "Level Up Req", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
|
,(` + strconv.Itoa(objSubTypeMessageLevelUpAck) + `, "level_up_ack", "Level Up Ack", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeJobPillage) + `, "job_pillage", "Pillage job", ` + strconv.Itoa(objTypeJob) + `)
|
,(` + strconv.Itoa(objSubTypeJobPillage) + `, "job_pillage", "Pillage job", ` + strconv.Itoa(objTypeJob) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeJobTribute) + `, "job_tribute", "Tribute job", ` + strconv.Itoa(objTypeJob) + `)
|
,(` + strconv.Itoa(objSubTypeJobTribute) + `, "job_tribute", "Tribute job", ` + strconv.Itoa(objTypeJob) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeJobGWithdraw) + `, "job_gwithdraw", "GWithdrawal job", ` + strconv.Itoa(objTypeJob) + `)
|
,(` + strconv.Itoa(objSubTypeJobGWithdraw) + `, "job_gwithdraw", "GWithdrawal job", ` + strconv.Itoa(objTypeJob) + `)
|
||||||
|
Loading…
Reference in New Issue
Block a user