update g_list cmd

This commit is contained in:
shoopea 2020-10-17 11:41:55 +02:00
parent 51b2c3ffbe
commit 291bea074a
3 changed files with 84 additions and 0 deletions

View File

@ -94,6 +94,36 @@
"name": "Player guilds war report ack",
"obj_type": "msg"
},
{
"intl_id": "msg_g_list_req",
"name": "Player guilds list request",
"obj_type": "msg"
},
{
"intl_id": "msg_g_list_ack",
"name": "Player guilds list ack",
"obj_type": "msg"
},
{
"intl_id": "msg_g_atklist_req",
"name": "Player guilds atklist request",
"obj_type": "msg"
},
{
"intl_id": "msg_g_atklist_ack",
"name": "Player guilds atklist ack",
"obj_type": "msg"
},
{
"intl_id": "msg_g_deflist_req",
"name": "Player guilds deflist request",
"obj_type": "msg"
},
{
"intl_id": "msg_g_deflist_ack",
"name": "Player guilds deflist ack",
"obj_type": "msg"
},
{
"intl_id": "msg_quest_res",
"name": "Quest result",

View File

@ -119,6 +119,54 @@
"chat_id": 0,
"user_id": 0
},
{
"prio": 5000,
"descn": "Guild list members request",
"rule": "^/g_list$",
"msg_type": "msg_g_list_req",
"chat_id": 0,
"user_id": 0
},
{
"prio": 5000,
"descn": "Guild list members ack",
"rule": "^([🐉🦅🐺🦈🦌🥔🌑])(.*)(\\n#[0-9]+ [⚒⚗️📦🏹⚔️🛡]+[0-9]+ \\[.*\\] [a-zA-z0-9 ]+)+$",
"msg_type": "msg_g_list_ack",
"chat_id": 0,
"user_id": 0
},
{
"prio": 5000,
"descn": "Guild attack list request",
"rule": "^/g_atklist$",
"msg_type": "msg_g_atklist_req",
"chat_id": 0,
"user_id": 0
},
{
"prio": 5000,
"descn": "Guild attack list ack",
"rule": "^([🐉🦅🐺🦈🦌🥔🌑])(.*) Attack Rating(\\n#[0-9]+ ⚔[0-9]+ [a-zA-z0-9 ]+)+$",
"msg_type": "msg_g_atklist_ack",
"chat_id": 0,
"user_id": 0
},
{
"prio": 5000,
"descn": "Guild defense list request",
"rule": "^/g_deflist$",
"msg_type": "msg_g_deflist_req",
"chat_id": 0,
"user_id": 0
},
{
"prio": 5000,
"descn": "Guild defense list ack",
"rule": "^([🐉🦅🐺🦈🦌🥔🌑])(.*) Defence Rating(\\n#[0-9]+ 🛡[0-9]+ [a-zA-z0-9 ]+)+$",
"msg_type": "msg_g_deflist_ack",
"chat_id": 0,
"user_id": 0
},
{
"prio": 5000,
"descn": "Hero request",

View File

@ -590,6 +590,12 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
botVaultValOth(m)
case cacheObjSubType[`msg_refresh_cmd`]:
botRefreshMsg(m, rule.re)
case cacheObjSubType[`msg_g_list_req`]:
case cacheObjSubType[`msg_g_list_ack`]:
case cacheObjSubType[`msg_g_atklist_req`]:
case cacheObjSubType[`msg_g_atklist_ack`]:
case cacheObjSubType[`msg_g_deflist_req`]:
case cacheObjSubType[`msg_g_deflist_ack`]:
default:
//log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Unknwon message type in rule %d : %d (%d)\n%s\n", msgParsingRules[i].ID, msgParsingRules[i].MsgTypeID64, objId, m.Text)
}