diff --git a/sql.go b/sql.go index 746fb93..08b5d71 100644 --- a/sql.go +++ b/sql.go @@ -178,7 +178,7 @@ func initDB() { failOnError(err, "initDB : populate table code_obj_sub_type") _, err = db.Exec(`INSERT INTO msg_rules (prio, descn, rule, msg_type_id) - VALUES (5000, "Player war report", "^(?P[🐉🦅🐺🦈🦌🥔🌑])(?P(\[[A-Z]{3}\]){0,1})(?P([A-Za-z0-9 ]*)) ⚔:(?P[0-9]+)(?P\((-|\+)[0-9]+\)){0,1} 🛡:(?P[0-9]+) Lvl: (?P[0-9]+)\nYour result on the battlefield:\n🔥Exp: (?P[0-9]+)\n💰Gold: (?P-{0,1}[0-9]+)\n📦Stock: (?P-{0,1}[0-9]+)\n\n(?P(🔋Stamina restored)){0,1}(\n)*(?P(⚡Critical strike)){0,1}(\n)*(?s:.*)$", ` + strconv.Itoa(objSubTypeMessageReport) + `);`) + VALUES (5000, "Player war report", "^(?P[🐉🦅🐺🦈🦌🥔🌑])(?P(\\[[A-Z]{3}\\]){0,1})(?P([A-Za-z0-9 ]*)) ⚔:(?P[0-9]+)(?P\\((-|\\+)[0-9]+\\)){0,1} 🛡:(?P[0-9]+) Lvl: (?P[0-9]+)\\nYour result on the battlefield:\\n🔥Exp: (?P[0-9]+)\\n💰Gold: (?P-{0,1}[0-9]+)\\n📦Stock: (?P-{0,1}[0-9]+)\\n\\n(?P(🔋Stamina restored)){0,1}(\\n)*(?P(⚡Critical strike)){0,1}(\\n)*(?s:.*)$", ` + strconv.Itoa(objSubTypeMessageReport) + `);`) failOnError(err, "initDB : populate table msg_rules") log.Println("Database set up")