updates rules

This commit is contained in:
shoopea 2019-09-01 16:29:45 +08:00
parent e43bd1a7f6
commit abbbd6292e
2 changed files with 3 additions and 3 deletions

1
msg.go
View File

@ -1,4 +1,3 @@
package main
import ( import (
"errors" "errors"

View File

@ -205,14 +205,15 @@ func resetMsgParsingRules() {
,(5000, ` + strconv.Itoa(objSubTypeMessageGDepositAck) + `, "GDeposit Ack #2", "^Deposited successfully: (?P<Item>.*) \\((?P<Quantity>[0-9]+)\\)$") ,(5000, ` + strconv.Itoa(objSubTypeMessageGDepositAck) + `, "GDeposit Ack #2", "^Deposited successfully: (?P<Item>.*) \\((?P<Quantity>[0-9]+)\\)$")
,(5000, ` + strconv.Itoa(objSubTypeMessageGDepositAck) + `, "GDeposit Ack #1", "^Deposited (?P<Item>.*) \\((?P<Quantity>[0-9]+)\\) successfully$") ,(5000, ` + strconv.Itoa(objSubTypeMessageGDepositAck) + `, "GDeposit Ack #1", "^Deposited (?P<Item>.*) \\((?P<Quantity>[0-9]+)\\) successfully$")
,(5000, ` + strconv.Itoa(objSubTypeMessageAttackReq) + `, "Castle Attack Req", "^⚔Attack$") ,(5000, ` + strconv.Itoa(objSubTypeMessageAttackReq) + `, "Castle Attack Req", "^⚔Attack$")
,(5000, ` + strconv.Itoa(objSubTypeMessageAttackAck) + `, "Castle Attack Ack", "^Ha, bold enough? Choose an enemy!$") ,(5000, ` + strconv.Itoa(objSubTypeMessageAttackAck) + `, "Castle Attack Ack", "^Ha, bold enough\\? Choose an enemy\\!$")
,(5000, ` + strconv.Itoa(objSubTypeMessageAttackTargetReq) + `, "Castle Attack Target Req", "^(?P<Target>[🐉🦅🐺🦈🦌🥔🌑])$") ,(5000, ` + strconv.Itoa(objSubTypeMessageAttackTargetReq) + `, "Castle Attack Target Req", "^(?P<Target>[🐉🦅🐺🦈🦌🥔🌑])$")
,(5000, ` + strconv.Itoa(objSubTypeMessageAttackTargetAck) + `, "Castle Attack Target Ack", "^You are ready to strike. The next battle is in .*.\\n\\n` + ,(5000, ` + strconv.Itoa(objSubTypeMessageAttackTargetAck) + `, "Castle Attack Target Ack", "^You are ready to strike. The next battle is in .*.\\n\\n` +
`💬 Pass the waiting for the battle outcome chatting with players from other castles at @chatwarscommunity 💬$") `💬 Pass the waiting for the battle outcome chatting with players from other castles at @chatwarscommunity 💬$")
,(5000, ` + strconv.Itoa(objSubTypeMessageDefendReq) + `, "Defend Req", "^🛡Defend$") ,(5000, ` + strconv.Itoa(objSubTypeMessageDefendReq) + `, "Defend Req", "^🛡Defend$")
,(5000, ` + strconv.Itoa(objSubTypeMessageDefendAck) + `, "Defend Ack", "^You joined the defensive formations. The next battle is in .*.\\n\\n` + ,(5000, ` + strconv.Itoa(objSubTypeMessageDefendAck) + `, "Defend Ack", "^You joined the defensive formations. The next battle is in .*.\\n\\n` +
`💬 Pass the waiting for the battle outcome chatting with players from other castles at @chatwarscommunity 💬$") `💬 Pass the waiting for the battle outcome chatting with players from other castles at @chatwarscommunity 💬$")
,(5000, ` + strconv.Itoa(objSubTypeMessageBack) + `, "Back", "^Deposited (?P<Item>.*) \\((?P<Quantity>[0-9]+)\\) successfully$") ,(5000, ` + strconv.Itoa(objSubTypeMessageBack) + `, "Back", "^⬅Back$")
,(5000, ` + strconv.Itoa(objSubTypeMessageGoFastFight) + `, "Fast Fight", "^▶Fast fight$")
;`) ;`)
failOnError(err, "resetMsgParsingRules : populate table msg_rules") failOnError(err, "resetMsgParsingRules : populate table msg_rules")
} }