test
This commit is contained in:
parent
73aef5ff38
commit
7c33a323ce
4
bot.go
4
bot.go
@ -117,7 +117,7 @@ func botMsgRescan(m *tb.Message) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
Type: commandReplyMsg,
|
Type: commandReplyMsg,
|
||||||
Text: fmt.Sprint("Error scheduling the rescan for msg #%s", m.Payload),
|
Text: fmt.Sprintf("Error scheduling the rescan for msg #%s", m.Payload),
|
||||||
FromMsgID64: int64(m.ID),
|
FromMsgID64: int64(m.ID),
|
||||||
FromChatID64: m.Chat.ID,
|
FromChatID64: m.Chat.ID,
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ func botMsgRescan(m *tb.Message) {
|
|||||||
} else {
|
} else {
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
Type: commandReplyMsg,
|
Type: commandReplyMsg,
|
||||||
Text: fmt.Sprint("Rescaning msg #%s", m.Payload),
|
Text: fmt.Sprintf("Rescaning msg #%s", m.Payload),
|
||||||
FromMsgID64: int64(m.ID),
|
FromMsgID64: int64(m.ID),
|
||||||
FromChatID64: m.Chat.ID,
|
FromChatID64: m.Chat.ID,
|
||||||
}
|
}
|
||||||
|
2
def.go
2
def.go
@ -161,7 +161,7 @@ const (
|
|||||||
objSubTypeMessageReport = 305
|
objSubTypeMessageReport = 305
|
||||||
objSubTypeMessageGReport = 306
|
objSubTypeMessageGReport = 306
|
||||||
objSubTypeMessageQuest = 307
|
objSubTypeMessageQuest = 307
|
||||||
objSubTypeMessageFight = 308
|
objSubTypeMessageDuelFight = 308
|
||||||
objSubTypeMessageHero = 309
|
objSubTypeMessageHero = 309
|
||||||
objSubTypeMessageMe = 310
|
objSubTypeMessageMe = 310
|
||||||
objSubTypeMessageInventory = 311
|
objSubTypeMessageInventory = 311
|
||||||
|
2
sql.go
2
sql.go
@ -307,7 +307,7 @@ func initDB() {
|
|||||||
,(` + strconv.Itoa(objSubTypeMessageReport) + `, "report", "Player war report", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageReport) + `, "report", "Player war report", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessageGReport) + `, "g_report", "Player guilds war report", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageGReport) + `, "g_report", "Player guilds war report", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessageQuest) + `, "quest", "Quest result", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageQuest) + `, "quest", "Quest result", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessageFight) + `, "fight", "Fight result", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageDuelFight) + `, "duel_fight", "Duel fight result", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessageHero) + `, "hero", "Hero summary", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageHero) + `, "hero", "Hero summary", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessageMe) + `, "me", "Hero short summary", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageMe) + `, "me", "Hero short summary", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
,(` + strconv.Itoa(objSubTypeMessageInventory) + `, "inv", "Inventory", ` + strconv.Itoa(objTypeMessage) + `)
|
,(` + strconv.Itoa(objSubTypeMessageInventory) + `, "inv", "Inventory", ` + strconv.Itoa(objTypeMessage) + `)
|
||||||
|
@ -138,6 +138,12 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
|||||||
case objSubTypeMessagePillageLoss:
|
case objSubTypeMessagePillageLoss:
|
||||||
err = setObjSubTypeId(objId, objSubTypeMessagePillageLoss)
|
err = setObjSubTypeId(objId, objSubTypeMessagePillageLoss)
|
||||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(PillageLoss)")
|
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(PillageLoss)")
|
||||||
|
case objSubTypeMessageDuelFight:
|
||||||
|
err = setObjSubTypeId(objId, objSubTypeMessageDuelFight)
|
||||||
|
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(DuelFight)")
|
||||||
|
case objSubTypeMessageQuest:
|
||||||
|
err = setObjSubTypeId(objId, objSubTypeMessageQuest)
|
||||||
|
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(Quest)")
|
||||||
case objSubTypeMessageAuctionAnnounce:
|
case objSubTypeMessageAuctionAnnounce:
|
||||||
cwm := ChatWarsMessageAuctionAnnounce{
|
cwm := ChatWarsMessageAuctionAnnounce{
|
||||||
ObjID64: objId,
|
ObjID64: objId,
|
||||||
|
Loading…
Reference in New Issue
Block a user