From e3f360d66583e50ecd054022e7f2e7a888858b05 Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 21 Jan 2020 14:01:45 +0800 Subject: [PATCH] test inspect --- data/code_obj_sub_type.json | 15 +++++++++++++++ data/msg_rules.json | 24 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/data/code_obj_sub_type.json b/data/code_obj_sub_type.json index 2e9713b..ed60dac 100644 --- a/data/code_obj_sub_type.json +++ b/data/code_obj_sub_type.json @@ -34,6 +34,21 @@ "name": "Guild withdraw conf ack", "obj_type": "msg" }, + { + "intl_id": "msg_g_inspect_req", + "name": "Guild inspect reg", + "obj_type": "msg" + }, + { + "intl_id": "msg_inspect_ack", + "name": "Item inspect ack", + "obj_type": "msg" + }, + { + "intl_id": "msg_invalid_action", + "name": "Item inspect ack", + "obj_type": "msg" + }, { "intl_id": "msg_war", "name": "War report", diff --git a/data/msg_rules.json b/data/msg_rules.json index ef770c6..014590e 100644 --- a/data/msg_rules.json +++ b/data/msg_rules.json @@ -1830,5 +1830,29 @@ "msg_type": "msg_ny2020_battle", "chat_id": -1001198527605, "user_id": 841616455 + }, + { + "prio": 5000, + "descn": "Invalid action", + "rule": "^\\[invalid action\\]$", + "msg_type": "msg_invalid_action", + "chat_id": 0, + "user_id": 0 + }, + { + "prio": 5000, + "descn": "Guild inspect req", + "rule": "^/g_inspect_(?P[a-z0-9]+)$", + "msg_type": "msg_g_inspect_req", + "chat_id": 0, + "user_id": 0 + }, + { + "prio": 5000, + "descn": "Item inspect ack", + "rule": "^Item: (?P .*)$", + "msg_type": "msg_inspect_ack", + "chat_id": 0, + "user_id": 0 } ] \ No newline at end of file