From 0c7f70add7fb2847f99fdc280ecf9cef2f6cf525 Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 28 May 2019 11:53:38 +0800 Subject: [PATCH] test --- rules.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/rules.go b/rules.go index 5edec3c..dfd9a3a 100644 --- a/rules.go +++ b/rules.go @@ -121,13 +121,14 @@ func resetMsgParsingRules() { ,(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 .* minutes!\\n` + `(?s:.*)\\n` + - `Level:(?P[0-9]+)\\n` + - `Atk:(?P[0-9]+) Def:(?P[0-9]+)\\n` + - `Exp:(?P[0-9]+)/(?P[0-9]+)\\n` + - `Stamina:(?P[0-9]+)/(?P[0-9]+)\\n` + - `(Gold(?P[0-9]+)){0,1}(Pogs(?P[0-9]+)){0,1}(Gems(?P[0-9]+)){0,1}\\n\\n` + - `Equipment +(?P[0-9]+) +(?P[0-9]+)` + - `Bag: (?P[0-9]+)/(?P[0-9]+) /inv\\n\\n` + + `(?P.)(?P.*) of (?[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` + + `.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]+).\\n` + + `🎒Bag: (?P[0-9]+)/(?P[0-9]+) /inv\\n\\n` + `State:\\n(?P.*)\\n\\n` + `More:/hero(?s:.*)$") ;`)