From cd20362ddacb33680c605b8f86fd49cd44f27de8 Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 11 Jun 2019 10:46:25 +0800 Subject: [PATCH] test --- rules.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/rules.go b/rules.go index e3b5f0f..5f54d9b 100644 --- a/rules.go +++ b/rules.go @@ -125,18 +125,7 @@ func resetMsgParsingRules() { ,(4900, ` + strconv.Itoa(objSubTypeMessageUnionWar) + `, "Union war rep only union", "^(🏠Trade union news:\n)(?P(?s:.*))(🎪State of exclusive rights:\n){0}(?P(?s:.*))$") ,(4900, ` + strconv.Itoa(objSubTypeMessageUnionWar) + `, "Union war rep only fair", "^(🏠Trade union news:\n){0}(?P(?s:.*))(🎪State of exclusive rights:\n)(?P(?s:.*))$") ,(5000, ` + strconv.Itoa(objSubTypeMessageTimeout) + `, "Generic timeout", "^Too late. Action is not available.$") - ,(5000, ` + strconv.Itoa(objSubTypeMessageMeAck) + `, "Me ack", "^(?s:.*)Battle(.*)of the seven castles in .*!\\n(?s:.*)\\n` + - `(?P.)(\\[(?P[A-Z0-9]+)\\]){0,1}(?P.*?) ((?P(Knight|Ranger|Sentinel|Collector|Blacksmith|Alchemist|Esquire|Master)) ){0,1}of (?P[a-zA-Z]*) Castle\\n` + - `.Level: (?P[0-9]+)\\n` + - `.Atk: (?P[0-9]+) .Def: (?P[0-9]+)\\n` + - `.Exp: (?P[0-9]+)/(?P[0-9]+)\\n` + - `(.Hp: (?P[0-9]+)/(?P[0-9]+).*\\n){0,1}` + - `.Stamina: (?P[0-9]+)/(?P[0-9]+).*\\n` + - `(.(?P(-){0,1}[0-9]+)){0,1}( .(?P[0-9]+)){0,1}( .(?P[0-9]+)){0,1}\\n\\n` + - `(.*?)(🎽Equipment \\+(?P[0-9]+).\\+(?P[0-9]+).){0,1}\\n` + - `🎒Bag: (?P[0-9]+)/(?P[0-9]+) /inv\\n\\n` + - `State:\\n(?P.*)\\n\\n` + - `More: /hero(?s:.*)$") + ,(5000, ` + strconv.Itoa(objSubTypeMessageMeAck) + `, "Me ack", "^(?s:.*)Battle(.*)of the seven castles in .*!\\n(?s:.*)\\n(?P.)(\\[(?P[A-Z0-9]+)\\]){0,1}(?P.*?) ((?P(Knight|Ranger|Sentinel|Collector|Blacksmith|Alchemist|Esquire|Master)) ){0,1}of (?P[a-zA-Z]*) Castle\\n.+?Level: (?P[0-9]+)\\n.+?Atk: (?P[0-9]+) .+?Def: (?P[0-9]+)\\n.+?Exp: (?P[0-9]+)\\/(?P[0-9]+)\\n(.+?Hp: (?P[0-9]+)\\/(?P[0-9]+).*\\n){0,1}.+?Stamina: (?P[0-9]+)\\/(?P[0-9]+).*?\\n(.+?(?P(-){0,1}[0-9]+)){0,1}( .+?(?P[0-9]+)){0,1}( .+?(?P[0-9]+)){0,1}\\n\\n(.*?)(🎽Equipment \\+(?P[0-9]+).\\+(?P[0-9]+).){0,1}\\n🎒Bag: (?P[0-9]+)\\/(?P[0-9]+) \\/inv\\n\\nState:\\n(?P.*)\\n\\nMore: \\/hero(?s:.*)$") ,(5000, ` + strconv.Itoa(objSubTypeMessageGoQuestAck) + `, "Go Quest Ack Forest", "^In a dire need for an adventure, you went to a (?P[a-zA-Z ]+). You'll be back in (?P