diff --git a/class.go b/class.go new file mode 100644 index 0000000..0e7c886 --- /dev/null +++ b/class.go @@ -0,0 +1,5 @@ +package main + +func addClass(objID64 int64, classifID64 int64, classID64 int64) { + return +} diff --git a/data/code_obj_sub_type.json b/data/code_obj_sub_type.json index 64a131c..942c4f7 100644 --- a/data/code_obj_sub_type.json +++ b/data/code_obj_sub_type.json @@ -679,6 +679,16 @@ "name": "Set Unknown Action", "obj_type": "msg" }, + { + "intl_id": "msg_bot_rage_up", + "name": "Rage Up Withdraw", + "obj_type": "msg" + }, + { + "intl_id": "msg_bot_peace_up", + "name": "Peace Up Withdraw", + "obj_type": "msg" + }, { "intl_id": "job_pillage", "name": "Pillage job", diff --git a/rules.go b/rules.go index f87947e..05f5f88 100644 --- a/rules.go +++ b/rules.go @@ -144,6 +144,26 @@ func resetMsgParsingRules() error { } // chats + r = MessageParsingRule{ + Priority: 9999, + Description: "Rage Up Withdrawal", + Rule: "^/rage_up$", + MsgTypeID64: cacheObjSubType[`msg_bot_rage_up`], + ChatID64: cfg.Bot.Mainchat, + SenderUserID64: 0, + } + rules2 = append(rules2, r) + + r = MessageParsingRule{ + Priority: 9999, + Description: "Peace Up Withdrawal", + Rule: "^/peace_up$", + MsgTypeID64: cacheObjSubType[`msg_bot_peace_up`], + ChatID64: cfg.Bot.Mainchat, + SenderUserID64: 0, + } + rules2 = append(rules2, r) + r = MessageParsingRule{ Priority: 1, Description: "Default Main chat", diff --git a/workers.go b/workers.go index 9add398..84a2287 100644 --- a/workers.go +++ b/workers.go @@ -550,6 +550,8 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) { botUserConfigPillage(m, false) case cacheObjSubType[`msg_bot_shutdown`]: botShutdown() + case cacheObjSubType[`msg_bot_rage_up`]: + case cacheObjSubType[`msg_bot_peace_up`]: 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) }